@esportsplus/reactivity 0.25.14 → 0.26.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.
- package/build/{transformer/transforms → compiler}/array.d.ts +1 -1
- package/build/{transformer/transforms → compiler}/array.js +2 -2
- package/build/{transformer → compiler}/index.js +4 -4
- package/build/{transformer/transforms → compiler}/object.d.ts +1 -1
- package/build/{transformer/transforms → compiler}/object.js +2 -2
- package/build/{transformer → compiler}/plugins/tsc.d.ts +1 -1
- package/build/{transformer → compiler}/plugins/tsc.js +1 -1
- package/build/{transformer → compiler}/plugins/vite.js +1 -1
- package/build/{transformer/transforms → compiler}/primitives.d.ts +1 -1
- package/build/{transformer/transforms → compiler}/primitives.js +2 -2
- package/build/constants.js +1 -1
- package/package.json +9 -13
- package/src/{transformer/transforms → compiler}/array.ts +1 -1
- package/src/{transformer → compiler}/index.ts +4 -4
- package/src/{transformer/transforms → compiler}/object.ts +1 -1
- package/src/{transformer → compiler}/plugins/tsc.ts +1 -1
- package/src/{transformer → compiler}/plugins/vite.ts +1 -1
- package/src/{transformer/transforms → compiler}/primitives.ts +1 -1
- package/src/constants.ts +1 -1
- /package/build/{transformer → compiler}/index.d.ts +0 -0
- /package/build/{transformer → compiler}/plugins/vite.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ast, code as c } from '@esportsplus/typescript/
|
|
1
|
+
import { ast, code as c } from '@esportsplus/typescript/compiler';
|
|
2
2
|
import { ts } from '@esportsplus/typescript';
|
|
3
|
-
import { COMPILER_TYPES } from '
|
|
3
|
+
import { COMPILER_TYPES } from '../constants.js';
|
|
4
4
|
function visit(ctx, node) {
|
|
5
5
|
if (ts.isVariableDeclaration(node) && ts.isIdentifier(node.name) && node.initializer) {
|
|
6
6
|
if (ts.isIdentifier(node.initializer) && ctx.bindings.get(node.initializer.text) === COMPILER_TYPES.Array) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ts } from '@esportsplus/typescript';
|
|
2
|
-
import { code as c } from '@esportsplus/typescript/
|
|
2
|
+
import { code as c } from '@esportsplus/typescript/compiler';
|
|
3
3
|
import { COMPILER_ENTRYPOINT, COMPILER_ENTRYPOINT_REGEX, COMPILER_NAMESPACE } from '../constants.js';
|
|
4
|
-
import array from './
|
|
5
|
-
import object from './
|
|
6
|
-
import primitives from './
|
|
4
|
+
import array from './array.js';
|
|
5
|
+
import object from './object.js';
|
|
6
|
+
import primitives from './primitives.js';
|
|
7
7
|
let transforms = [object, array, primitives];
|
|
8
8
|
function contains(code) {
|
|
9
9
|
if (!c.contains(code, { regex: COMPILER_ENTRYPOINT_REGEX })) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ts } from '@esportsplus/typescript';
|
|
2
|
-
import { code as c } from '@esportsplus/typescript/
|
|
3
|
-
import { COMPILER_TYPES, PACKAGE } from '
|
|
2
|
+
import { code as c } from '@esportsplus/typescript/compiler';
|
|
3
|
+
import { COMPILER_TYPES, PACKAGE } from '../constants.js';
|
|
4
4
|
function analyzeProperty(prop, sourceFile) {
|
|
5
5
|
if (!ts.isPropertyAssignment(prop)) {
|
|
6
6
|
return null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ts } from '@esportsplus/typescript';
|
|
2
|
-
import { ast, code as c } from '@esportsplus/typescript/
|
|
3
|
-
import { COMPILER_ENTRYPOINT, COMPILER_TYPES, PACKAGE } from '
|
|
2
|
+
import { ast, code as c } from '@esportsplus/typescript/compiler';
|
|
3
|
+
import { COMPILER_ENTRYPOINT, COMPILER_TYPES, PACKAGE } from '../constants.js';
|
|
4
4
|
const COMPOUND_OPERATORS = new Map([
|
|
5
5
|
[ts.SyntaxKind.AmpersandAmpersandEqualsToken, '&&'],
|
|
6
6
|
[ts.SyntaxKind.AmpersandEqualsToken, '&'],
|
package/build/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"@esportsplus/utilities": "^0.27.2"
|
|
5
5
|
},
|
|
6
6
|
"devDependencies": {
|
|
7
|
-
"@esportsplus/typescript": "^0.
|
|
7
|
+
"@esportsplus/typescript": "^0.21.0",
|
|
8
8
|
"@types/node": "^25.0.3",
|
|
9
9
|
"vite": "^7.3.0"
|
|
10
10
|
},
|
|
@@ -13,18 +13,14 @@
|
|
|
13
13
|
"import": "./build/index.js",
|
|
14
14
|
"types": "./build/index.d.ts"
|
|
15
15
|
},
|
|
16
|
-
"./
|
|
17
|
-
"
|
|
18
|
-
"
|
|
16
|
+
"./compiler/tsc": {
|
|
17
|
+
"types": "./build/compiler/plugins/tsc.d.ts",
|
|
18
|
+
"import": "./build/compiler/plugins/tsc.js",
|
|
19
|
+
"require": "./build/compiler/plugins/tsc.js"
|
|
19
20
|
},
|
|
20
|
-
"./
|
|
21
|
-
"types": "./build/
|
|
22
|
-
"import": "./build/
|
|
23
|
-
"require": "./build/transformer/plugins/tsc.js"
|
|
24
|
-
},
|
|
25
|
-
"./plugins/vite": {
|
|
26
|
-
"types": "./build/transformer/plugins/vite.d.ts",
|
|
27
|
-
"import": "./build/transformer/plugins/vite.js"
|
|
21
|
+
"./compiler/vite": {
|
|
22
|
+
"types": "./build/compiler/plugins/vite.d.ts",
|
|
23
|
+
"import": "./build/compiler/plugins/vite.js"
|
|
28
24
|
}
|
|
29
25
|
},
|
|
30
26
|
"main": "build/index.js",
|
|
@@ -36,7 +32,7 @@
|
|
|
36
32
|
},
|
|
37
33
|
"type": "module",
|
|
38
34
|
"types": "build/index.d.ts",
|
|
39
|
-
"version": "0.
|
|
35
|
+
"version": "0.26.0",
|
|
40
36
|
"scripts": {
|
|
41
37
|
"build": "tsc",
|
|
42
38
|
"build:test": "pnpm build && vite build --config test/vite.config.ts",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ast, code as c, type Replacement } from '@esportsplus/typescript/
|
|
1
|
+
import { ast, code as c, type Replacement } from '@esportsplus/typescript/compiler';
|
|
2
2
|
import { ts } from '@esportsplus/typescript';
|
|
3
3
|
import { COMPILER_TYPES } from '~/constants';
|
|
4
4
|
import type { Bindings } from '~/types';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ts } from '@esportsplus/typescript';
|
|
2
|
-
import { code as c } from '@esportsplus/typescript/
|
|
2
|
+
import { code as c } from '@esportsplus/typescript/compiler';
|
|
3
3
|
import { COMPILER_ENTRYPOINT, COMPILER_ENTRYPOINT_REGEX, COMPILER_NAMESPACE } from '~/constants';
|
|
4
4
|
import type { Bindings, TransformResult } from '~/types';
|
|
5
|
-
import array from './
|
|
6
|
-
import object from './
|
|
7
|
-
import primitives from './
|
|
5
|
+
import array from './array';
|
|
6
|
+
import object from './object';
|
|
7
|
+
import primitives from './primitives';
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
let transforms = [object, array, primitives];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ts } from '@esportsplus/typescript';
|
|
2
|
-
import { code as c, type Replacement } from '@esportsplus/typescript/
|
|
2
|
+
import { code as c, type Replacement } from '@esportsplus/typescript/compiler';
|
|
3
3
|
import { COMPILER_TYPES, PACKAGE } from '~/constants';
|
|
4
4
|
import type { Bindings } from '~/types';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ts } from '@esportsplus/typescript';
|
|
2
|
-
import { ast, code as c, type Range, type Replacement } from '@esportsplus/typescript/
|
|
2
|
+
import { ast, code as c, type Range, type Replacement } from '@esportsplus/typescript/compiler';
|
|
3
3
|
import type { Bindings } from '~/types';
|
|
4
4
|
import { COMPILER_ENTRYPOINT, COMPILER_TYPES, PACKAGE } from '~/constants';
|
|
5
5
|
|
package/src/constants.ts
CHANGED
|
File without changes
|
|
File without changes
|