@esportsplus/template 0.33.1 → 0.34.0

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.
@@ -1,5 +1,5 @@
1
1
  import { ts } from '@esportsplus/typescript';
2
- import { ast, code as c, uid } from '@esportsplus/typescript/transformer';
2
+ import { ast, code as c, uid } from '@esportsplus/typescript/compiler';
3
3
  import { analyzeExpression, generateAttributeBinding, generateSpreadBindings } from './type-analyzer.js';
4
4
  import { COMPILER_ENTRYPOINT, COMPILER_NAMESPACE, COMPILER_TYPES, PACKAGE, PACKAGE_COMPILER } from '../constants.js';
5
5
  import parser from './parser.js';
@@ -1,4 +1,4 @@
1
- import { code as c } from '@esportsplus/typescript/transformer';
1
+ import { code as c } from '@esportsplus/typescript/compiler';
2
2
  import { addImport, generateCode, generateReactiveInlining, needsArraySlotImport } from './codegen.js';
3
3
  import { COMPILER_ENTRYPOINT, COMPILER_ENTRYPOINT_REACTIVITY } from '../constants.js';
4
4
  import { findHtmlTemplates, findReactiveCalls } from './ts-parser.js';
@@ -1,3 +1,3 @@
1
- import { plugin } from '@esportsplus/typescript/transformer';
1
+ import { plugin } from '@esportsplus/typescript/compiler';
2
2
  declare const _default: ReturnType<typeof plugin.tsc>;
3
3
  export default _default;
@@ -1,3 +1,3 @@
1
- import { plugin } from '@esportsplus/typescript/transformer';
1
+ import { plugin } from '@esportsplus/typescript/compiler';
2
2
  import { transform } from '../index.js';
3
3
  export default plugin.tsc(transform);
@@ -1,4 +1,4 @@
1
- import { plugin } from '@esportsplus/typescript/transformer';
1
+ import { plugin } from '@esportsplus/typescript/compiler';
2
2
  import { PACKAGE } from '../../constants.js';
3
3
  import { transform } from '../index.js';
4
4
  export default plugin.vite({
@@ -1,4 +1,4 @@
1
- import { uid } from '@esportsplus/typescript/transformer';
1
+ import { uid } from '@esportsplus/typescript/compiler';
2
2
  const ARRAY_SLOT = Symbol('template.array.slot');
3
3
  const CLEANUP = Symbol('template.cleanup');
4
4
  const COMPILER_ENTRYPOINT = 'html';
package/package.json CHANGED
@@ -2,12 +2,12 @@
2
2
  "author": "ICJR",
3
3
  "dependencies": {
4
4
  "@esportsplus/queue": "^0.2.0",
5
- "@esportsplus/reactivity": "^0.25.14",
5
+ "@esportsplus/reactivity": "^0.26.0",
6
6
  "@esportsplus/utilities": "^0.27.2",
7
7
  "serve": "^14.2.5"
8
8
  },
9
9
  "devDependencies": {
10
- "@esportsplus/typescript": "^0.20.0",
10
+ "@esportsplus/typescript": "^0.21.0",
11
11
  "@types/node": "^25.0.3",
12
12
  "vite": "^7.3.0",
13
13
  "vite-tsconfig-paths": "^6.0.3"
@@ -22,14 +22,14 @@
22
22
  "types": "./build/compiler/index.d.ts"
23
23
  },
24
24
  "./compiler/tsc": {
25
- "types": "./build/compiler/plugins/tsc/index.d.ts",
26
- "import": "./build/compiler/plugins/tsc/index.js",
27
- "require": "./build/compiler/plugins/tsc/index.js"
25
+ "types": "./build/compiler/plugins/tsc.d.ts",
26
+ "import": "./build/compiler/plugins/tsc.js",
27
+ "require": "./build/compiler/plugins/tsc.js"
28
28
  },
29
29
  "./compiler/vite": {
30
- "types": "./build/compiler/plugins/vite/index.d.ts",
31
- "import": "./build/compiler/plugins/vite/index.js",
32
- "require": "./build/compiler/plugins/vite/index.js"
30
+ "types": "./build/compiler/plugins/vite.d.ts",
31
+ "import": "./build/compiler/plugins/vite.js",
32
+ "require": "./build/compiler/plugins/vite.js"
33
33
  }
34
34
  },
35
35
  "main": "./build/index.js",
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "type": "module",
43
43
  "types": "./build/index.d.ts",
44
- "version": "0.33.1",
44
+ "version": "0.34.0",
45
45
  "scripts": {
46
46
  "build": "tsc",
47
47
  "build:test": "vite build --config test/vite.config.ts",
@@ -1,5 +1,5 @@
1
1
  import { ts } from '@esportsplus/typescript';
2
- import { ast, code as c, uid, type Replacement } from '@esportsplus/typescript/transformer';
2
+ import { ast, code as c, uid, type Replacement } from '@esportsplus/typescript/compiler';
3
3
  import type { ReactiveCallInfo, TemplateInfo } from './ts-parser';
4
4
  import { analyzeExpression, generateAttributeBinding, generateSpreadBindings } from './type-analyzer';
5
5
  import {
@@ -1,4 +1,4 @@
1
- import { code as c } from '@esportsplus/typescript/transformer';
1
+ import { code as c } from '@esportsplus/typescript/compiler';
2
2
  import { addImport, generateCode, generateReactiveInlining, needsArraySlotImport } from './codegen';
3
3
  import { COMPILER_ENTRYPOINT, COMPILER_ENTRYPOINT_REACTIVITY } from '../constants';
4
4
  import { findHtmlTemplates, findReactiveCalls } from './ts-parser';
@@ -1,4 +1,4 @@
1
- import { plugin } from '@esportsplus/typescript/transformer';
1
+ import { plugin } from '@esportsplus/typescript/compiler';
2
2
  import { transform } from '..';
3
3
 
4
4
 
@@ -1,4 +1,4 @@
1
- import { plugin } from '@esportsplus/typescript/transformer';
1
+ import { plugin } from '@esportsplus/typescript/compiler';
2
2
  import { PACKAGE } from '../../constants';
3
3
  import { transform } from '..';
4
4
 
package/src/constants.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { uid } from '@esportsplus/typescript/transformer';
1
+ import { uid } from '@esportsplus/typescript/compiler';
2
2
 
3
3
 
4
4
  const ARRAY_SLOT = Symbol('template.array.slot');
package/tsconfig.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "extends": "@esportsplus/typescript/tsconfig.package.json",
3
3
  "compilerOptions": {
4
4
  "plugins": [
5
- { "transform": "@esportsplus/reactivity/plugins/tsc" }
5
+ { "transform": "@esportsplus/reactivity/compiler/tsc" }
6
6
  ]
7
7
  }
8
8
  }
@@ -1,2 +0,0 @@
1
- export { default as tsc } from './tsc.js';
2
- export { default as vite } from './vite.js';
@@ -1,2 +0,0 @@
1
- export { default as tsc } from './tsc.js';
2
- export { default as vite } from './vite.js';
@@ -1,2 +0,0 @@
1
- export { default as tsc } from './tsc';
2
- export { default as vite } from './vite';