@stencil/core 5.0.0-alpha.4 → 5.0.0-alpha.6

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.
Files changed (44) hide show
  1. package/dist/{client-Dti6fFpE.mjs → client-fWOou5EW.mjs} +2360 -2090
  2. package/dist/compiler/index.d.mts +5 -5
  3. package/dist/compiler/index.mjs +2 -2
  4. package/dist/compiler/utils/index.d.mts +2 -2
  5. package/dist/compiler/utils/index.mjs +3 -3
  6. package/dist/{compiler-BYRrEeD-.mjs → compiler-CdUbDTbV.mjs} +13426 -12276
  7. package/dist/declarations/stencil-public-compiler.d.ts +527 -238
  8. package/dist/declarations/stencil-public-compiler.js +2 -3
  9. package/dist/declarations/stencil-public-docs.d.ts +10 -0
  10. package/dist/declarations/stencil-public-runtime.d.ts +51 -12
  11. package/dist/{index-BwTaN1Nq.d.mts → index-D8vvsppY.d.mts} +566 -350
  12. package/dist/{index-CyrGY82h.d.ts → index-Dap2E02-.d.ts} +83 -32
  13. package/dist/{index-9LTuoSiw.d.mts → index-UUlemGuu.d.mts} +13 -2
  14. package/dist/index.d.mts +0 -1
  15. package/dist/index.mjs +1 -1
  16. package/dist/jsx-runtime.d.mts +18 -0
  17. package/dist/jsx-runtime.mjs +2 -0
  18. package/dist/{node-BF2jSfWg.mjs → node-klLZLdDe.mjs} +20 -19
  19. package/dist/{regular-expression-D5pGVpCu.mjs → regular-expression-DUdhF3Ei.mjs} +113 -29
  20. package/dist/runtime/app-data/index.d.ts +1 -1
  21. package/dist/runtime/app-data/index.js +15 -9
  22. package/dist/{runtime-COEYYPyw.js → runtime/client/lazy.js} +2596 -2182
  23. package/dist/runtime/client/{index.d.ts → runtime.d.ts} +89 -47
  24. package/dist/runtime/client/{index.js → runtime.js} +2473 -2183
  25. package/dist/runtime/index.d.ts +46 -5
  26. package/dist/runtime/index.js +4956 -2
  27. package/dist/runtime/server/index.d.mts +85 -63
  28. package/dist/runtime/server/index.mjs +2462 -2193
  29. package/dist/runtime/server/runner.d.mts +44 -32
  30. package/dist/runtime/server/runner.mjs +335 -383
  31. package/dist/signals/index.d.ts +47 -0
  32. package/dist/signals/index.js +199 -0
  33. package/dist/sys/node/index.d.mts +1 -1
  34. package/dist/sys/node/index.mjs +1 -1
  35. package/dist/sys/node/worker.mjs +2 -2
  36. package/dist/testing/index.d.mts +97 -3
  37. package/dist/testing/index.mjs +197 -45
  38. package/dist/{validation-Byxie0Uk.mjs → validation-2QipI30K.mjs} +90 -77
  39. package/package.json +41 -28
  40. package/dist/index-hS-KBdAP.d.ts +0 -30
  41. package/dist/jsx-runtime-DlDkTqps.d.ts +0 -28
  42. package/dist/jsx-runtime.d.ts +0 -2
  43. package/dist/jsx-runtime.js +0 -2
  44. /package/dist/{chunk-CjcI7cDX.mjs → chunk-z9aeyW2b.mjs} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "5.0.0-alpha.4",
3
+ "version": "5.0.0-alpha.6",
4
4
  "description": "A Compiler for Web Components and Progressive Web Apps",
5
5
  "keywords": [
6
6
  "components",
@@ -44,18 +44,22 @@
44
44
  "import": "./dist/compiler/utils/index.mjs"
45
45
  },
46
46
  "./jsx-runtime": {
47
- "types": "./dist/jsx-runtime.d.ts",
48
- "import": "./dist/jsx-runtime.js"
47
+ "types": "./dist/jsx-runtime.d.mts",
48
+ "import": "./dist/jsx-runtime.mjs"
49
49
  },
50
50
  "./jsx-dev-runtime": {
51
- "types": "./dist/jsx-runtime.d.ts",
52
- "import": "./dist/jsx-runtime.js"
51
+ "types": "./dist/jsx-runtime.d.mts",
52
+ "import": "./dist/jsx-runtime.mjs"
53
53
  },
54
54
  "./mock-doc": {
55
55
  "types": "./dist/mock-doc.d.mts",
56
56
  "import": "./dist/mock-doc.mjs",
57
57
  "default": "./dist/mock-doc.mjs"
58
58
  },
59
+ "./signals": {
60
+ "types": "./dist/signals/index.d.ts",
61
+ "import": "./dist/signals/index.js"
62
+ },
59
63
  "./runtime": {
60
64
  "types": "./dist/runtime/index.d.ts",
61
65
  "import": "./dist/runtime/index.js"
@@ -69,8 +73,16 @@
69
73
  "import": "./dist/runtime/app-globals/index.js"
70
74
  },
71
75
  "./runtime/client": {
72
- "types": "./dist/runtime/client/index.d.ts",
73
- "import": "./dist/runtime/client/index.js"
76
+ "types": "./dist/runtime/client/runtime.d.ts",
77
+ "import": "./dist/runtime/client/runtime.js"
78
+ },
79
+ "./runtime/client/standalone": {
80
+ "types": "./dist/runtime/client/runtime.d.ts",
81
+ "import": "./dist/runtime/client/runtime.js"
82
+ },
83
+ "./runtime/client/lazy": {
84
+ "types": "./dist/runtime/client/runtime.d.ts",
85
+ "import": "./dist/runtime/client/lazy.js"
74
86
  },
75
87
  "./runtime/server": {
76
88
  "types": "./dist/runtime/server/index.d.mts",
@@ -90,35 +102,36 @@
90
102
  }
91
103
  },
92
104
  "dependencies": {
93
- "@parcel/watcher": "^2.5.1",
105
+ "@parcel/watcher": "^2.0.0",
106
+ "@preact/signals-core": "^1.0.0",
94
107
  "@rollup/pluginutils": "^5.3.0",
95
- "@stencil/vitest": "^1.10.0",
96
- "browserslist": "^4.24.0",
97
- "chalk": "^5.6.2",
108
+ "browserslist": "^4.0.0",
109
+ "chalk": "^5.0.0",
98
110
  "css-what": "^7.0.0",
99
- "glob": "^10.0.0",
100
- "graceful-fs": "^4.2.11",
101
- "lightningcss": "^1.32.0",
111
+ "jiti": "^2.0.0",
112
+ "lightningcss": "^1.0.0",
102
113
  "magic-string": "^0.30.0",
103
- "minimatch": "^10.1.2",
104
- "postcss": "^8.5.6",
105
- "postcss-safe-parser": "^7.0.1",
106
- "postcss-selector-parser": "^7.1.1",
114
+ "picomatch": "^4.0.0",
115
+ "postcss": "^8.0.0",
116
+ "postcss-safe-parser": "^7.0.0",
117
+ "postcss-selector-parser": "^7.0.0",
107
118
  "resolve": "^1.22.0",
108
- "rolldown": "^1.0.0-rc.13",
109
- "semver": "^7.7.4",
110
- "terser": "5.37.0",
111
- "typescript": "~6.0.2",
112
- "@stencil/cli": "5.0.0-alpha.4",
113
- "@stencil/dev-server": "5.0.0-alpha.4",
114
- "@stencil/mock-doc": "5.0.0-alpha.4"
119
+ "rolldown": "^1.0.0",
120
+ "semver": "^7.0.0",
121
+ "terser": "^5.0.0",
122
+ "tinyglobby": "^0.2.0",
123
+ "typescript": ">4.0.0 <7.0.0",
124
+ "@stencil/cli": "5.0.0-alpha.6",
125
+ "@stencil/mock-doc": "5.0.0-alpha.6",
126
+ "@stencil/dev-server": "5.0.0-alpha.6"
115
127
  },
116
128
  "devDependencies": {
117
129
  "@ionic/prettier-config": "^4.0.0",
130
+ "@stencil/vitest": "^1.12.1",
118
131
  "prettier": "^3.5.0",
119
- "tsdown": "^0.21.6",
120
- "vitest": "^4.1.1",
121
- "vitest-environment-stencil": "^1.10.0"
132
+ "tsdown": ">=0.21.0 <1.0.0",
133
+ "vitest": "^4.1.7",
134
+ "vitest-environment-stencil": "^1.12.1"
122
135
  },
123
136
  "volta": {
124
137
  "extends": "../../package.json"
@@ -1,30 +0,0 @@
1
- import { t as BuildConditionals } from "./index-CyrGY82h.js";
2
-
3
- //#region src/app-data/index.d.ts
4
- /**
5
- * A collection of default build flags for a Stencil project.
6
- *
7
- * This collection can be found throughout the Stencil codebase, often imported from the `virtual:app-data` module like so:
8
- * ```ts
9
- * import { BUILD } from 'virtual:app-data';
10
- * ```
11
- * and is used to determine if a portion of the output of a Stencil _project_'s compilation step can be eliminated.
12
- *
13
- * e.g. When `BUILD.allRenderFn` evaluates to `false`, the compiler will eliminate conditional statements like:
14
- * ```ts
15
- * if (BUILD.allRenderFn) {
16
- * // some code that will be eliminated if BUILD.allRenderFn is false
17
- * }
18
- * ```
19
- *
20
- * `virtual:app-data`, the module that `BUILD` is imported from, is an alias for the `@stencil/core/runtime/app-data`, and is
21
- * partially referenced by {@link STENCIL_APP_DATA_ID}. The `src/compiler/bundle/app-data-plugin.ts` references
22
- * `STENCIL_APP_DATA_ID` uses it to replace these defaults with {@link BuildConditionals} that are derived from a
23
- * Stencil project's contents (i.e. metadata from the components). This replacement happens at a Stencil project's
24
- * compile time. Such code can be found at `src/compiler/app-core/app-data.ts`.
25
- */
26
- declare const BUILD: BuildConditionals;
27
- declare const Env: {};
28
- declare const NAMESPACE: string;
29
- //#endregion
30
- export { Env as n, NAMESPACE as r, BUILD as t };
@@ -1,28 +0,0 @@
1
- import { m as FunctionalComponent, y as VNode } from "./index-CyrGY82h.js";
2
-
3
- //#region src/runtime/fragment.d.ts
4
- declare const Fragment: FunctionalComponent;
5
- //#endregion
6
- //#region src/runtime/vdom/jsx-runtime.d.ts
7
- /**
8
- * JSX runtime function for creating elements in production mode.
9
- * Called by TypeScript's jsx transform for elements without static children.
10
- *
11
- * @param type - The element type (string tag name or functional component)
12
- * @param props - The element props (includes children)
13
- * @param key - Optional key for the element
14
- * @returns A virtual DOM node
15
- */
16
- declare function jsx(type: any, props: any, key?: string): VNode;
17
- /**
18
- * JSX runtime function for creating elements with static children.
19
- * Called by TypeScript's jsx transform as an optimization when children are static.
20
- *
21
- * @param type - The element type (string tag name or functional component)
22
- * @param props - The element props (includes children)
23
- * @param key - Optional key for the element
24
- * @returns A virtual DOM node
25
- */
26
- declare function jsxs(type: any, props: any, key?: string): VNode;
27
- //#endregion
28
- export { jsxs as n, Fragment as r, jsx as t };
@@ -1,2 +0,0 @@
1
- import { n as jsxs, r as Fragment, t as jsx } from "./jsx-runtime-DlDkTqps.js";
2
- export { Fragment, jsx, jsxs };
@@ -1,2 +0,0 @@
1
- import { d as Fragment, n as jsx, r as jsxs } from "./runtime-COEYYPyw.js";
2
- export { Fragment, jsx, jsxs };
File without changes