@tsrx/preact 0.0.22 → 0.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Preact compiler built on @tsrx/core",
4
4
  "license": "MIT",
5
5
  "author": "Dominic Gannaway",
6
- "version": "0.0.22",
6
+ "version": "0.0.23",
7
7
  "type": "module",
8
8
  "publishConfig": {
9
9
  "access": "public"
@@ -22,15 +22,15 @@
22
22
  "types": "./types/error-boundary.d.ts",
23
23
  "default": "./src/error-boundary.js"
24
24
  },
25
- "./merge-refs": {
26
- "types": "./types/merge-refs.d.ts",
27
- "default": "./src/merge-refs.js"
25
+ "./ref": {
26
+ "types": "./types/ref.d.ts",
27
+ "default": "./src/ref.js"
28
28
  }
29
29
  },
30
30
  "dependencies": {
31
31
  "esrap": "^2.1.0",
32
32
  "zimmerframe": "^1.1.2",
33
- "@tsrx/core": "0.0.27"
33
+ "@tsrx/core": "0.0.28"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "preact": ">=10"
package/src/index.js CHANGED
@@ -6,6 +6,7 @@ import { createVolarMappingsResult, dedupeMappings, parseModule } from '@tsrx/co
6
6
  import { DEFAULT_SUSPENSE_SOURCE, transform } from './transform.js';
7
7
 
8
8
  export { DEFAULT_SUSPENSE_SOURCE };
9
+ export { isRefProp } from './ref.js';
9
10
 
10
11
  /**
11
12
  * Parse tsrx-preact source code to an ESTree AST.
package/src/ref.js ADDED
@@ -0,0 +1 @@
1
+ export * from '@tsrx/core/runtime/ref';
package/src/transform.js CHANGED
@@ -35,7 +35,8 @@ const preact_platform = {
35
35
  fragment: 'preact',
36
36
  suspense: DEFAULT_SUSPENSE_SOURCE,
37
37
  errorBoundary: '@tsrx/preact/error-boundary',
38
- mergeRefs: '@tsrx/preact/merge-refs',
38
+ mergeRefs: '@tsrx/preact/ref',
39
+ refProp: '@tsrx/preact/ref',
39
40
  },
40
41
  jsx: {
41
42
  rewriteClassAttr: false,
package/types/index.d.ts CHANGED
@@ -9,6 +9,8 @@ export const DEFAULT_SUSPENSE_SOURCE: string;
9
9
 
10
10
  export function parse(source: string, filename?: string, options?: ParseOptions): Program;
11
11
 
12
+ export { isRefProp } from './ref.js';
13
+
12
14
  export const compile: CompileFn<CompileOptions & BaseCompileOptions>;
13
15
 
14
16
  export const compile_to_volar_mappings: VolarCompileFn<ParseOptions & CompileOptions>;
package/types/ref.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from '@tsrx/core/runtime/ref';
package/src/merge-refs.js DELETED
@@ -1 +0,0 @@
1
- export { mergeRefs } from '@tsrx/core/runtime/merge-refs';
@@ -1 +0,0 @@
1
- export { mergeRefs } from '@tsrx/core/runtime/merge-refs';