Skip to content

Commit

Permalink
Merge branch 'release/v0.13.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
holtwick committed May 16, 2024
2 parents b617757 + ba93893 commit 69e11d2
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 59 deletions.
12 changes: 6 additions & 6 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
declare namespace JSX {
/** See https://www.typescriptlang.org/docs/handbook/jsx.html#intrinsic-elements */
interface IntrinsicElements {
[elemName: string]: any
}
}
// declare namespace JSX {
// /** See https://www.typescriptlang.org/docs/handbook/jsx.html#intrinsic-elements */
// interface IntrinsicElements {
// [elemName: string]: any
// }
// }
16 changes: 16 additions & 0 deletions jsx-runtime/index.d.ts
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
export type * from '../dist/jsx-runtime.d.ts'

declare namespace React {
namespace JSX {
interface IntrinsicElements {
[elemName: string]: any
}
}
}

declare global {
namespace JSX {
interface IntrinsicElements {
[elemName: string]: any
}
}
}
31 changes: 0 additions & 31 deletions jsx-runtime/package.json

This file was deleted.

20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "zeed-dom",
"type": "module",
"version": "0.13.1",
"version": "0.13.2",
"description": "🌱 Lightweight offline DOM",
"author": {
"name": "Dirk Holtwick",
Expand Down Expand Up @@ -31,15 +31,16 @@
"default": "./dist/index.browser.js"
},
"./jsx-runtime": {
"types": "./dist/jsx-runtime.d.ts",
"browser": "./dist/jsx-runtime.js",
"import": "./dist/jsx-runtime.js",
"require": "./dist/jsx-runtime.cjs"
"types": "./jsx-runtime/index.d.ts",
"browser": "./jsx-runtime/index.js",
"import": "./jsx-runtime/index.js",
"require": "./jsx-runtime/index.cjs"
},
"./jsx-dev-runtime": {
"browser": "./dist/jsx-runtime.js",
"import": "./dist/jsx-runtime.js",
"require": "./dist/jsx-runtime.cjs"
"types": "./jsx-runtime/index.d.ts",
"browser": "./jsx-runtime/index.js",
"import": "./jsx-runtime/index.js",
"require": "./jsx-runtime/index.cjs"
}
},
"main": "dist/index.node.cjs",
Expand All @@ -48,8 +49,7 @@
"types": "dist/index.node.d.ts",
"files": [
"dist",
"jsx-runtime",
"env.d.ts"
"jsx-runtime"
],
"engines": {
"node": ">=14.13.1"
Expand Down
2 changes: 0 additions & 2 deletions src/index.browser.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
export * from './jsx-intrinsicelements'

export * from './vdom'
export * from './h'
export * from './utils'
Expand Down
8 changes: 0 additions & 8 deletions src/jsx-intrinsicelements.ts

This file was deleted.

2 changes: 0 additions & 2 deletions src/jsx-runtime.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { h } from './html'

export * from './jsx-intrinsicelements'

// See
// https://esbuild.github.io/api/#jsx-import-source
// https://www.typescriptlang.org/tsconfig/#jsxImportSource
Expand Down

0 comments on commit 69e11d2

Please sign in to comment.