@rindo/core 3.0.0-alpha.2 → 3.0.0-beta.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/cli/index.cjs +2 -2
- package/cli/index.js +2 -2
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/rindo.js +45 -23
- package/compiler/rindo.min.js +2 -2
- package/dependencies.json +1 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/index.cjs +3 -0
- package/internal/app-data/index.js +3 -0
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +1 -1
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +20 -3
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +15 -2
- package/internal/client/patch-esm.js +3 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/package.json +1 -1
- package/internal/rindo-public-compiler.d.ts +16 -8
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +1 -1
- package/mock-doc/index.js +1 -1
- package/mock-doc/package.json +1 -1
- package/package.json +2 -2
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +2 -2
- package/testing/package.json +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo CLI (CommonJS) v3.0.0-
|
|
2
|
+
Rindo CLI (CommonJS) v3.0.0-beta.0 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
'use strict';
|
|
5
5
|
|
|
@@ -987,7 +987,7 @@ const dereferenceAlias = (maybeAlias) => {
|
|
|
987
987
|
const dependencies = [
|
|
988
988
|
{
|
|
989
989
|
name: "@rindo/core",
|
|
990
|
-
version: "3.0.0-
|
|
990
|
+
version: "3.0.0-beta.0",
|
|
991
991
|
main: "compiler/rindo.js",
|
|
992
992
|
resources: [
|
|
993
993
|
"package.json",
|
package/cli/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo CLI v3.0.0-
|
|
2
|
+
Rindo CLI v3.0.0-beta.0 | MIT Licensed | https://rindojs.web.app
|
|
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: "@rindo/core",
|
|
966
|
-
version: "3.0.0-
|
|
966
|
+
version: "3.0.0-beta.0",
|
|
967
967
|
main: "compiler/rindo.js",
|
|
968
968
|
resources: [
|
|
969
969
|
"package.json",
|
package/cli/package.json
CHANGED
package/compiler/package.json
CHANGED
package/compiler/rindo.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Rindo Compiler v3.0.0-
|
|
2
|
+
Rindo Compiler v3.0.0-beta.0 | MIT Licensed | https://rindojs.web.app
|
|
3
3
|
*/
|
|
4
4
|
(function(exports) {
|
|
5
5
|
'use strict';
|
|
@@ -1368,6 +1368,7 @@ const getDependencies = (buildCtx) => {
|
|
|
1368
1368
|
const hasDependency = (buildCtx, depName) => {
|
|
1369
1369
|
return getDependencies(buildCtx).includes(depName);
|
|
1370
1370
|
};
|
|
1371
|
+
// TODO: Remove code related to the dynamic import shim
|
|
1371
1372
|
const getDynamicImportFunction$1 = (namespace) => `__sc_import_${namespace.replace(/\s|-/g, '_')}`;
|
|
1372
1373
|
const readPackageJson = async (config, compilerCtx, buildCtx) => {
|
|
1373
1374
|
try {
|
|
@@ -2097,7 +2098,7 @@ const process$3 = /*#__PURE__*/Object.assign(/*#__PURE__*/Object.create(null), p
|
|
|
2097
2098
|
'default': process_1
|
|
2098
2099
|
});
|
|
2099
2100
|
|
|
2100
|
-
const buildId = '
|
|
2101
|
+
const buildId = '20230405134147';
|
|
2101
2102
|
const minfyJsId = 'terser5.16.1_7';
|
|
2102
2103
|
const optimizeCssId = 'autoprefixer10.4.13_postcss8.4.21_7';
|
|
2103
2104
|
const parse5Version = '7.1.2';
|
|
@@ -2105,8 +2106,8 @@ const rollupVersion = '2.42.3';
|
|
|
2105
2106
|
const sizzleVersion = '2.42.3';
|
|
2106
2107
|
const terserVersion = '5.16.1';
|
|
2107
2108
|
const typescriptVersion = '4.9.4';
|
|
2108
|
-
const vermoji = '
|
|
2109
|
-
const version$3 = '3.0.0-
|
|
2109
|
+
const vermoji = '🐺';
|
|
2110
|
+
const version$3 = '3.0.0-beta.0';
|
|
2110
2111
|
const versions = {
|
|
2111
2112
|
rindo: version$3,
|
|
2112
2113
|
parse5: parse5Version,
|
|
@@ -10112,7 +10113,8 @@ const optimizeModule = async (config, compilerCtx, opts) => {
|
|
|
10112
10113
|
const getTerserOptions = (config, sourceTarget, prettyOutput) => {
|
|
10113
10114
|
const opts = {
|
|
10114
10115
|
ie8: false,
|
|
10115
|
-
|
|
10116
|
+
// TODO: Remove code related to deprecated `safari10` field.
|
|
10117
|
+
safari10: !!config.extras.__deprecated__safari10,
|
|
10116
10118
|
format: {},
|
|
10117
10119
|
sourceMap: config.sourceMap,
|
|
10118
10120
|
};
|
|
@@ -10573,7 +10575,8 @@ const optimizeJs = async (inputOpts) => {
|
|
|
10573
10575
|
const prettyOutput = !!inputOpts.pretty;
|
|
10574
10576
|
const config = {
|
|
10575
10577
|
extras: {
|
|
10576
|
-
|
|
10578
|
+
// TODO: Remove code related to deprecated `safari10` field.
|
|
10579
|
+
__deprecated__safari10: true,
|
|
10577
10580
|
},
|
|
10578
10581
|
};
|
|
10579
10582
|
const sourceTarget = inputOpts.target === 'es5' ? 'es5' : 'latest';
|
|
@@ -54012,7 +54015,8 @@ export const Build = {
|
|
|
54012
54015
|
return null;
|
|
54013
54016
|
},
|
|
54014
54017
|
resolveImportMeta(prop, { format }) {
|
|
54015
|
-
|
|
54018
|
+
// TODO: Remove code related to the dynamic import shim
|
|
54019
|
+
if (config.extras.__deprecated__dynamicImportShim && prop === 'url' && format === 'es') {
|
|
54016
54020
|
return '""';
|
|
54017
54021
|
}
|
|
54018
54022
|
return null;
|
|
@@ -55950,7 +55954,7 @@ const bundleOutput = async (config, compilerCtx, buildCtx, bundleOpts) => {
|
|
|
55950
55954
|
* @returns the rollup options to be used
|
|
55951
55955
|
*/
|
|
55952
55956
|
const getRollupOptions = (config, compilerCtx, buildCtx, bundleOpts) => {
|
|
55953
|
-
var _a;
|
|
55957
|
+
var _a, _b;
|
|
55954
55958
|
const customResolveOptions = createCustomResolverAsync(config.sys, compilerCtx.fs, [
|
|
55955
55959
|
'.tsx',
|
|
55956
55960
|
'.ts',
|
|
@@ -55991,6 +55995,9 @@ const getRollupOptions = (config, compilerCtx, buildCtx, bundleOpts) => {
|
|
|
55991
55995
|
const afterPlugins = config.rollupPlugins.after || [];
|
|
55992
55996
|
const rollupOptions = {
|
|
55993
55997
|
input: bundleOpts.inputs,
|
|
55998
|
+
output: {
|
|
55999
|
+
inlineDynamicImports: (_a = bundleOpts.inlineDynamicImports) !== null && _a !== void 0 ? _a : false,
|
|
56000
|
+
},
|
|
55994
56001
|
plugins: [
|
|
55995
56002
|
coreResolvePlugin(config, compilerCtx, bundleOpts.platform, bundleOpts.externalRuntime),
|
|
55996
56003
|
appDataPlugin(config, compilerCtx, buildCtx, bundleOpts.conditionals, bundleOpts.platform),
|
|
@@ -56022,8 +56029,7 @@ const getRollupOptions = (config, compilerCtx, buildCtx, bundleOpts) => {
|
|
|
56022
56029
|
fileLoadPlugin(compilerCtx.fs),
|
|
56023
56030
|
],
|
|
56024
56031
|
treeshake: getTreeshakeOption(config, bundleOpts),
|
|
56025
|
-
|
|
56026
|
-
preserveEntrySignatures: (_a = bundleOpts.preserveEntrySignatures) !== null && _a !== void 0 ? _a : 'strict',
|
|
56032
|
+
preserveEntrySignatures: (_b = bundleOpts.preserveEntrySignatures) !== null && _b !== void 0 ? _b : 'strict',
|
|
56027
56033
|
onwarn: createOnWarnFn(buildCtx.diagnostics),
|
|
56028
56034
|
cache: compilerCtx.rollupCache.get(bundleOpts.id),
|
|
56029
56035
|
};
|
|
@@ -57083,14 +57089,18 @@ const updateBuildConditionals = (config, b) => {
|
|
|
57083
57089
|
b.appendChildSlotFix = config.extras.appendChildSlotFix;
|
|
57084
57090
|
b.slotChildNodesFix = config.extras.slotChildNodesFix;
|
|
57085
57091
|
b.cloneNodeFix = config.extras.cloneNodeFix;
|
|
57086
|
-
|
|
57092
|
+
// TODO: Remove code related to the dynamic import shim
|
|
57093
|
+
b.dynamicImportShim = config.extras.__deprecated__dynamicImportShim;
|
|
57087
57094
|
b.lifecycleDOMEvents = !!(b.isDebug || config._isTesting || config.extras.lifecycleDOMEvents);
|
|
57088
|
-
|
|
57095
|
+
// TODO: Remove code related to deprecated `safari10` field.
|
|
57096
|
+
b.safari10 = config.extras.__deprecated__safari10;
|
|
57089
57097
|
b.scopedSlotTextContentFix = !!config.extras.scopedSlotTextContentFix;
|
|
57090
57098
|
b.scriptDataOpts = config.extras.scriptDataOpts;
|
|
57091
|
-
|
|
57099
|
+
// TODO: Remove code related to deprecated shadowDomShim field
|
|
57100
|
+
b.shadowDomShim = config.extras.__deprecated__shadowDomShim;
|
|
57092
57101
|
b.attachStyles = true;
|
|
57093
57102
|
b.invisiblePrehydration = typeof config.invisiblePrehydration === 'undefined' ? true : config.invisiblePrehydration;
|
|
57103
|
+
// TODO: Remove code related to deprecated shadowDomShim field
|
|
57094
57104
|
if (b.shadowDomShim) {
|
|
57095
57105
|
b.slotRelocation = b.slot;
|
|
57096
57106
|
}
|
|
@@ -57170,7 +57180,6 @@ const getBundleOptions = (config, buildCtx, compilerCtx, outputTarget) => ({
|
|
|
57170
57180
|
index: '\0core',
|
|
57171
57181
|
},
|
|
57172
57182
|
loader: {},
|
|
57173
|
-
inlineDynamicImports: outputTarget.inlineDynamicImports,
|
|
57174
57183
|
preserveEntrySignatures: 'allow-extension',
|
|
57175
57184
|
});
|
|
57176
57185
|
/**
|
|
@@ -57388,7 +57397,6 @@ const bundleCustomElements = async (config, compilerCtx, buildCtx, outputTarget)
|
|
|
57388
57397
|
loader: {
|
|
57389
57398
|
'\0core': generateEntryPoint(outputTarget, buildCtx),
|
|
57390
57399
|
},
|
|
57391
|
-
inlineDynamicImports: outputTarget.inlineDynamicImports,
|
|
57392
57400
|
preserveEntrySignatures: 'allow-extension',
|
|
57393
57401
|
};
|
|
57394
57402
|
const build = await bundleOutput(config, compilerCtx, buildCtx, bundleOpts);
|
|
@@ -57666,6 +57674,7 @@ const addHydrateRuntimeCmpMeta = (classMembers, cmp) => {
|
|
|
57666
57674
|
};
|
|
57667
57675
|
// We always need shadow-dom shim in hydrate runtime
|
|
57668
57676
|
if (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) {
|
|
57677
|
+
// TODO: Remove code related to deprecated shadowDomShim field
|
|
57669
57678
|
cmpMeta.$flags$ |= 8 /* CMP_FLAGS.needsShadowDomShim */;
|
|
57670
57679
|
}
|
|
57671
57680
|
const staticMember = createStaticGetter('cmpMeta', convertValueToLiteral(cmpMeta));
|
|
@@ -57729,6 +57738,7 @@ const getHydrateBuildConditionals$1 = (cmps) => {
|
|
|
57729
57738
|
build.slotRelocation = true;
|
|
57730
57739
|
build.lazyLoad = true;
|
|
57731
57740
|
build.hydrateServerSide = true;
|
|
57741
|
+
// TODO: Remove code implementing the CSS variable shim
|
|
57732
57742
|
build.cssVarShim = false;
|
|
57733
57743
|
build.hydrateClientSide = true;
|
|
57734
57744
|
build.isDebug = false;
|
|
@@ -57746,11 +57756,14 @@ const getHydrateBuildConditionals$1 = (cmps) => {
|
|
|
57746
57756
|
build.slotChildNodesFix = false;
|
|
57747
57757
|
build.cloneNodeFix = false;
|
|
57748
57758
|
build.cssAnnotations = true;
|
|
57759
|
+
// TODO: Remove code related to deprecated shadowDomShim field
|
|
57749
57760
|
build.shadowDomShim = true;
|
|
57761
|
+
// TODO: Remove code related to deprecated `safari10` field.
|
|
57750
57762
|
build.safari10 = false;
|
|
57751
57763
|
build.hydratedAttribute = false;
|
|
57752
57764
|
build.hydratedClass = true;
|
|
57753
57765
|
build.scriptDataOpts = false;
|
|
57766
|
+
// TODO: Remove code related to the dynamic import shim
|
|
57754
57767
|
build.dynamicImportShim = false;
|
|
57755
57768
|
build.attachStyles = true;
|
|
57756
57769
|
return build;
|
|
@@ -58124,7 +58137,9 @@ const getHydrateBuildConditionals = (config, cmps) => {
|
|
|
58124
58137
|
build.cloneNodeFix = false;
|
|
58125
58138
|
build.appendChildSlotFix = false;
|
|
58126
58139
|
build.slotChildNodesFix = false;
|
|
58140
|
+
// TODO: Remove code related to deprecated `safari10` field.
|
|
58127
58141
|
build.safari10 = false;
|
|
58142
|
+
// TODO: Remove code related to deprecated shadowDomShim field
|
|
58128
58143
|
build.shadowDomShim = false;
|
|
58129
58144
|
return build;
|
|
58130
58145
|
};
|
|
@@ -58872,7 +58887,8 @@ const generateEsmBrowser = async (config, compilerCtx, buildCtx, rollupBuild, ou
|
|
|
58872
58887
|
preferConst: true,
|
|
58873
58888
|
sourcemap: config.sourceMap,
|
|
58874
58889
|
};
|
|
58875
|
-
|
|
58890
|
+
// TODO: Remove code related to the dynamic import shim
|
|
58891
|
+
if (config.extras.__deprecated__dynamicImportShim) {
|
|
58876
58892
|
// for Edge 16-18
|
|
58877
58893
|
esmOpts.dynamicImportFunction = getDynamicImportFunction$1(config.fsNamespace);
|
|
58878
58894
|
}
|
|
@@ -58892,7 +58908,8 @@ const getClientPolyfill = async (config, compilerCtx, polyfillFile) => {
|
|
|
58892
58908
|
const getAppBrowserCorePolyfills = async (config, compilerCtx) => {
|
|
58893
58909
|
// read all the polyfill content, in this particular order
|
|
58894
58910
|
const polyfills = INLINE_POLYFILLS.slice();
|
|
58895
|
-
|
|
58911
|
+
// TODO: Remove code implementing the CSS variable shim
|
|
58912
|
+
if (config.extras.__deprecated__cssVarsShim) {
|
|
58896
58913
|
polyfills.push(INLINE_CSS_SHIM);
|
|
58897
58914
|
}
|
|
58898
58915
|
const results = await Promise.all(polyfills.map((polyfillFile) => getClientPolyfill(config, compilerCtx, polyfillFile)));
|
|
@@ -58983,7 +59000,8 @@ const getLazyBuildConditionals = (config, cmps) => {
|
|
|
58983
59000
|
const build = getBuildFeatures(cmps);
|
|
58984
59001
|
build.lazyLoad = true;
|
|
58985
59002
|
build.hydrateServerSide = false;
|
|
58986
|
-
|
|
59003
|
+
// TODO: Remove code implementing the CSS variable shim
|
|
59004
|
+
build.cssVarShim = config.extras.__deprecated__cssVarsShim;
|
|
58987
59005
|
build.transformTagName = config.extras.tagNameTransform;
|
|
58988
59006
|
build.asyncQueue = config.taskQueue === 'congestionAsync';
|
|
58989
59007
|
build.taskQueue = config.taskQueue !== 'immediate';
|
|
@@ -69057,12 +69075,16 @@ const validateConfig = (userConfig = {}, bootstrapConfig) => {
|
|
|
69057
69075
|
validatedConfig.extras = validatedConfig.extras || {};
|
|
69058
69076
|
validatedConfig.extras.appendChildSlotFix = !!validatedConfig.extras.appendChildSlotFix;
|
|
69059
69077
|
validatedConfig.extras.cloneNodeFix = !!validatedConfig.extras.cloneNodeFix;
|
|
69060
|
-
|
|
69061
|
-
validatedConfig.extras.
|
|
69078
|
+
// TODO: Remove code implementing the CSS variable shim
|
|
69079
|
+
validatedConfig.extras.__deprecated__cssVarsShim = !!validatedConfig.extras.__deprecated__cssVarsShim;
|
|
69080
|
+
// TODO: Remove code related to the dynamic import shim
|
|
69081
|
+
validatedConfig.extras.__deprecated__dynamicImportShim = !!validatedConfig.extras.__deprecated__dynamicImportShim;
|
|
69062
69082
|
validatedConfig.extras.lifecycleDOMEvents = !!validatedConfig.extras.lifecycleDOMEvents;
|
|
69063
|
-
|
|
69083
|
+
// TODO: Remove code related to deprecated `safari10` field.
|
|
69084
|
+
validatedConfig.extras.__deprecated__safari10 = !!validatedConfig.extras.__deprecated__safari10;
|
|
69064
69085
|
validatedConfig.extras.scriptDataOpts = !!validatedConfig.extras.scriptDataOpts;
|
|
69065
|
-
|
|
69086
|
+
// TODO: Remove code related to deprecated shadowDomShim field
|
|
69087
|
+
validatedConfig.extras.__deprecated__shadowDomShim = !!validatedConfig.extras.__deprecated__shadowDomShim;
|
|
69066
69088
|
validatedConfig.extras.slotChildNodesFix = !!validatedConfig.extras.slotChildNodesFix;
|
|
69067
69089
|
validatedConfig.extras.initializeNextTick = !!validatedConfig.extras.initializeNextTick;
|
|
69068
69090
|
validatedConfig.extras.tagNameTransform = !!validatedConfig.extras.tagNameTransform;
|
|
@@ -69973,7 +69995,7 @@ const getComponentPathContent = (componentGraph, outputTarget) => {
|
|
|
69973
69995
|
const dependencies = [
|
|
69974
69996
|
{
|
|
69975
69997
|
name: "@rindo/core",
|
|
69976
|
-
version: "3.0.0-
|
|
69998
|
+
version: "3.0.0-beta.0",
|
|
69977
69999
|
main: "compiler/rindo.js",
|
|
69978
70000
|
resources: [
|
|
69979
70001
|
"package.json",
|