@stencil/core 4.39.0-dev.1766120789.792acf5 → 4.39.0-dev.1766380053.d3b8b7a

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 (39) hide show
  1. package/cli/index.cjs +2 -1
  2. package/cli/index.js +2 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/stencil.js +30 -12
  6. package/dev-server/client/index.js +1 -1
  7. package/dev-server/client/package.json +1 -1
  8. package/dev-server/connector.html +2 -2
  9. package/dev-server/index.js +1 -1
  10. package/dev-server/package.json +1 -1
  11. package/dev-server/server-process.js +3 -2
  12. package/internal/app-data/index.cjs +1 -0
  13. package/internal/app-data/index.js +1 -0
  14. package/internal/app-data/package.json +1 -1
  15. package/internal/app-globals/package.json +1 -1
  16. package/internal/client/index.js +20 -15
  17. package/internal/client/package.json +1 -1
  18. package/internal/client/patch-browser.js +1 -1
  19. package/internal/hydrate/index.js +20 -15
  20. package/internal/hydrate/package.json +1 -1
  21. package/internal/hydrate/runner.js +1 -1
  22. package/internal/package.json +1 -1
  23. package/internal/stencil-private.d.ts +6 -0
  24. package/internal/stencil-public-compiler.d.ts +8 -3
  25. package/internal/stencil-public-runtime.d.ts +8 -2
  26. package/internal/testing/index.js +19 -14
  27. package/internal/testing/package.json +1 -1
  28. package/mock-doc/index.cjs +1 -1
  29. package/mock-doc/index.js +1 -1
  30. package/mock-doc/package.json +1 -1
  31. package/package.json +1 -1
  32. package/screenshot/index.js +2 -1
  33. package/screenshot/package.json +1 -1
  34. package/screenshot/pixel-match.js +1 -1
  35. package/sys/node/index.js +28 -28
  36. package/sys/node/package.json +1 -1
  37. package/sys/node/worker.js +1 -1
  38. package/testing/index.js +8 -7
  39. package/testing/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.39.0-dev.1766120789.792acf5",
3
+ "version": "4.39.0-dev.1766380053.d3b8b7a",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
1
  /*!
2
- Stencil Node System Worker v4.39.0-dev.1766120789.792acf5 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v4.39.0-dev.1766380053.d3b8b7a | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var f=Object.create;var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(n,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of E(t))!R.call(n,e)&&e!==r&&d(n,e,{get:()=>t[e],enumerable:!(s=p(t,e))||s.enumerable});return n};var c=(n,t,r)=>(r=n!=null?f(y(n)):{},g(t||!n||!n.__esModule?d(r,"default",{value:n,enumerable:!0}):r,n));var l=c(require("../../compiler/stencil.js")),m=c(require("../../sys/node/index.js"));var a=(n,t)=>{let r=e=>{e&&e.code==="ERR_IPC_CHANNEL_CLOSED"&&n.exit(0)},s=(e,o)=>{let i={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};typeof o=="string"?i.stencilRtnError+=": "+o:o&&(o.stack?i.stencilRtnError+=": "+o.stack:o.message&&(i.stencilRtnError+=":"+o.message)),n.send(i,r)};n.on("message",async e=>{if(e&&typeof e.stencilId=="number")try{let o={stencilId:e.stencilId,stencilRtnValue:await t(e),stencilRtnError:null};n.send(o,r)}catch(o){s(e.stencilId,o)}}),n.on("unhandledRejection",e=>{s(-1,e)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);a(process,M);
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v4.39.0-dev.1766120789.792acf5 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v4.39.0-dev.1766380053.d3b8b7a | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
 
@@ -2124,6 +2124,9 @@ var formatComponentRuntimeMeta = (compilerMeta, includeMethods) => {
2124
2124
  if (compilerMeta.shadowDelegatesFocus) {
2125
2125
  flags |= 16 /* shadowDelegatesFocus */;
2126
2126
  }
2127
+ if (compilerMeta.slotAssignment === "manual") {
2128
+ flags |= 1024 /* shadowSlotAssignmentManual */;
2129
+ }
2127
2130
  } else if (compilerMeta.encapsulation === "scoped") {
2128
2131
  flags |= 2 /* scopedCssEncapsulation */;
2129
2132
  }
@@ -8789,6 +8792,7 @@ var validateConfig = (userConfig = {}, bootstrapConfig) => {
8789
8792
  minifyJs: (_e = config.minifyJs) != null ? _e : !devMode,
8790
8793
  outputTargets: (_f = config.outputTargets) != null ? _f : [],
8791
8794
  rollupConfig: validateRollupConfig(config),
8795
+ sourceMap: config.sourceMap === true || devMode && (config.sourceMap === "dev" || typeof config.sourceMap === "undefined"),
8792
8796
  sys: (_h = (_g = config.sys) != null ? _g : bootstrapConfig.sys) != null ? _h : (0, import_sys_api_node.createNodeSys)({ logger }),
8793
8797
  testing: (_i = config.testing) != null ? _i : {},
8794
8798
  docs: validateDocs2(config, logger),
@@ -8834,12 +8838,6 @@ var validateConfig = (userConfig = {}, bootstrapConfig) => {
8834
8838
  validatedConfig.extras.scopedSlotTextContentFix = !!validatedConfig.extras.scopedSlotTextContentFix;
8835
8839
  validatedConfig.extras.experimentalScopedSlotChanges = !!validatedConfig.extras.experimentalScopedSlotChanges;
8836
8840
  }
8837
- setBooleanConfig(
8838
- validatedConfig,
8839
- "sourceMap",
8840
- null,
8841
- typeof validatedConfig.sourceMap === "undefined" ? true : validatedConfig.sourceMap
8842
- );
8843
8841
  setBooleanConfig(validatedConfig, "watch", "watch", false);
8844
8842
  setBooleanConfig(validatedConfig, "buildDocs", "docs", !validatedConfig.devMode);
8845
8843
  setBooleanConfig(validatedConfig, "buildDist", "esm", !validatedConfig.devMode || !!validatedConfig.buildEs5);
@@ -10053,6 +10051,7 @@ var stubComponentCompilerMeta = (overrides = {}) => ({
10053
10051
  properties: [],
10054
10052
  serializers: [],
10055
10053
  shadowDelegatesFocus: false,
10054
+ slotAssignment: null,
10056
10055
  sourceFilePath: "/some/stubbed/path/my-component.tsx",
10057
10056
  sourceMapPath: "/some/stubbed/path/my-component.js.map",
10058
10057
  states: [],
@@ -10838,6 +10837,7 @@ function mockValidatedConfig(overrides = {}) {
10838
10837
  outputTargets: (_a = baseConfig.outputTargets) != null ? _a : [],
10839
10838
  packageJsonFilePath: import_path24.default.join(rootDir4, "package.json"),
10840
10839
  rootDir: rootDir4,
10840
+ sourceMap: true,
10841
10841
  srcDir: "/src",
10842
10842
  srcIndexHtml: "src/index.html",
10843
10843
  suppressReservedPublicNameWarnings: false,
@@ -12443,6 +12443,7 @@ var getBuildFeatures = (cmps) => {
12443
12443
  serializer: cmps.some((c) => c.hasSerializer),
12444
12444
  shadowDom,
12445
12445
  shadowDelegatesFocus: shadowDom && cmps.some((c) => c.shadowDelegatesFocus),
12446
+ shadowSlotAssignmentManual: shadowDom && cmps.some((c) => c.slotAssignment === "manual"),
12446
12447
  slot,
12447
12448
  slotRelocation,
12448
12449
  state: cmps.some((c) => c.hasState),
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "4.39.0-dev.1766120789.792acf5",
3
+ "version": "4.39.0-dev.1766380053.d3b8b7a",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",