@stencil/core 3.0.0-beta.1 → 3.0.0-rc.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.
Files changed (39) hide show
  1. package/cli/index.cjs +2 -2
  2. package/cli/index.js +2 -2
  3. package/cli/package.json +1 -1
  4. package/compiler/package.json +1 -1
  5. package/compiler/stencil.js +25 -6
  6. package/compiler/stencil.min.js +2 -2
  7. package/dependencies.json +1 -1
  8. package/dev-server/client/index.js +1 -1
  9. package/dev-server/client/package.json +1 -1
  10. package/dev-server/connector.html +2 -2
  11. package/dev-server/index.js +1 -1
  12. package/dev-server/package.json +1 -1
  13. package/dev-server/server-process.js +2 -2
  14. package/internal/app-data/package.json +1 -1
  15. package/internal/client/css-shim.js +1 -1
  16. package/internal/client/dom.js +1 -1
  17. package/internal/client/index.js +33 -2
  18. package/internal/client/package.json +1 -1
  19. package/internal/client/patch-browser.js +19 -1
  20. package/internal/client/patch-esm.js +1 -1
  21. package/internal/client/shadow-css.js +1 -1
  22. package/internal/hydrate/index.js +46 -35
  23. package/internal/hydrate/package.json +1 -1
  24. package/internal/package.json +1 -1
  25. package/internal/stencil-core/index.d.ts +1 -0
  26. package/internal/stencil-private.d.ts +10 -0
  27. package/internal/stencil-public-runtime.d.ts +9 -0
  28. package/internal/testing/index.js +51 -39
  29. package/internal/testing/package.json +1 -1
  30. package/mock-doc/index.cjs +1 -1
  31. package/mock-doc/index.js +1 -1
  32. package/mock-doc/package.json +1 -1
  33. package/package.json +4 -4
  34. package/screenshot/package.json +1 -1
  35. package/sys/node/index.js +1 -1
  36. package/sys/node/package.json +1 -1
  37. package/sys/node/worker.js +1 -1
  38. package/testing/index.js +35 -34
  39. package/testing/package.json +1 -1
package/cli/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI (CommonJS) v3.0.0-beta.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI (CommonJS) v3.0.0-rc.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  'use strict';
5
5
 
@@ -987,7 +987,7 @@ const dereferenceAlias = (maybeAlias) => {
987
987
  const dependencies = [
988
988
  {
989
989
  name: "@stencil/core",
990
- version: "3.0.0-beta.1",
990
+ version: "3.0.0-rc.0",
991
991
  main: "compiler/stencil.js",
992
992
  resources: [
993
993
  "package.json",
package/cli/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil CLI v3.0.0-beta.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil CLI v3.0.0-rc.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  /**
5
5
  * Convert a string from dash-case / kebab-case to PascalCase (or CamelCase,
@@ -963,7 +963,7 @@ const dereferenceAlias = (maybeAlias) => {
963
963
  const dependencies = [
964
964
  {
965
965
  name: "@stencil/core",
966
- version: "3.0.0-beta.1",
966
+ version: "3.0.0-rc.0",
967
967
  main: "compiler/stencil.js",
968
968
  resources: [
969
969
  "package.json",
package/cli/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/cli",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-rc.0",
4
4
  "description": "Stencil CLI.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/compiler",
3
- "version": "3.0.0-beta.1",
3
+ "version": "3.0.0-rc.0",
4
4
  "description": "Stencil Compiler.",
5
5
  "main": "./stencil.js",
6
6
  "types": "./stencil.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Compiler v3.0.0-beta.1 | MIT Licensed | https://stenciljs.com
2
+ Stencil Compiler v3.0.0-rc.0 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  (function(exports) {
5
5
  'use strict';
@@ -2098,7 +2098,7 @@ const process$3 = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), p
2098
2098
  'default': process_1
2099
2099
  });
2100
2100
 
2101
- const buildId = '20230109182913';
2101
+ const buildId = '20230117205038';
2102
2102
  const minfyJsId = 'terser5.16.1_7';
2103
2103
  const optimizeCssId = 'autoprefixer10.4.13_postcss8.4.21_7';
2104
2104
  const parse5Version = '7.1.2';
@@ -2106,8 +2106,8 @@ const rollupVersion = '2.42.3';
2106
2106
  const sizzleVersion = '2.42.3';
2107
2107
  const terserVersion = '5.16.1';
2108
2108
  const typescriptVersion = '4.9.4';
2109
- const vermoji = '🚚';
2110
- const version$3 = '3.0.0-beta.1';
2109
+ const vermoji = '⭐️';
2110
+ const version$3 = '3.0.0-rc.0';
2111
2111
  const versions = {
2112
2112
  stencil: version$3,
2113
2113
  parse5: parse5Version,
@@ -57314,7 +57314,7 @@ const generateEntryPoint$1 = (outputTarget, cmpImports = [], cmpExports = [], cm
57314
57314
  const imports = [];
57315
57315
  const exports = [];
57316
57316
  // Exports that are always present
57317
- exports.push(`export { setAssetPath, setPlatformOptions } from '${STENCIL_INTERNAL_CLIENT_ID}';`, `export * from '${USER_INDEX_ENTRY_ID}';`);
57317
+ exports.push(`export { setAssetPath, setNonce, setPlatformOptions } from '${STENCIL_INTERNAL_CLIENT_ID}';`, `export * from '${USER_INDEX_ENTRY_ID}';`);
57318
57318
  // Content related to global scripts
57319
57319
  if (outputTarget.includeGlobalScripts !== false) {
57320
57320
  imports.push(`import { globalScripts } from '${STENCIL_APP_GLOBALS_ID}';`);
@@ -59127,6 +59127,7 @@ function createEntryModule(cmps) {
59127
59127
  }
59128
59128
  const getLazyEntry = (isBrowser) => {
59129
59129
  const s = new MagicString$3(``);
59130
+ s.append(`export { setNonce } from '${STENCIL_CORE_ID}';\n`);
59130
59131
  s.append(`import { bootstrapLazy } from '${STENCIL_CORE_ID}';\n`);
59131
59132
  if (isBrowser) {
59132
59133
  s.append(`import { patchBrowser } from '${STENCIL_INTERNAL_CLIENT_PATCH_BROWSER_ID}';\n`);
@@ -60438,6 +60439,15 @@ export interface CustomElementsDefineOptions {
60438
60439
  }
60439
60440
  export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
60440
60441
  export declare function applyPolyfills(): Promise<void>;
60442
+
60443
+ /**
60444
+ * Used to specify a nonce value that corresponds with an application's CSP.
60445
+ * When set, the nonce will be added to all dynamically created script and style tags at runtime.
60446
+ * Alternatively, the nonce value can be set on a meta tag in the DOM head
60447
+ * (<meta name="csp-nonce" content="{ nonce value here }" />) which
60448
+ * will result in the same behavior.
60449
+ */
60450
+ export declare function setNonce(nonce: string): void;
60441
60451
  `;
60442
60452
  };
60443
60453
 
@@ -60507,6 +60517,15 @@ const generateCustomElementsTypesOutput$1 = async (config, compilerCtx, buildCtx
60507
60517
  ` */`,
60508
60518
  `export declare const setAssetPath: (path: string) => void;`,
60509
60519
  ``,
60520
+ `/**`,
60521
+ ` * Used to specify a nonce value that corresponds with an application's CSP.`,
60522
+ ` * When set, the nonce will be added to all dynamically created script and style tags at runtime.`,
60523
+ ` * Alternatively, the nonce value can be set on a meta tag in the DOM head`,
60524
+ ` * (<meta name="csp-nonce" content="{ nonce value here }" />) which`,
60525
+ ` * will result in the same behavior.`,
60526
+ ` */`,
60527
+ `export declare const setNonce: (nonce: string) => void`,
60528
+ ``,
60510
60529
  `export interface SetPlatformOptions {`,
60511
60530
  ` raf?: (c: FrameRequestCallback) => number;`,
60512
60531
  ` ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;`,
@@ -69978,7 +69997,7 @@ const getComponentPathContent = (componentGraph, outputTarget) => {
69978
69997
  const dependencies = [
69979
69998
  {
69980
69999
  name: "@stencil/core",
69981
- version: "3.0.0-beta.1",
70000
+ version: "3.0.0-rc.0",
69982
70001
  main: "compiler/stencil.js",
69983
70002
  resources: [
69984
70003
  "package.json",