es-module-shims 1.5.8 → 1.5.9

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/README.md CHANGED
@@ -29,7 +29,7 @@ Because we are still using the native module loader the edge cases work out comp
29
29
  Include ES Module Shims with a `async` attribute on the script, then include an import map and module scripts normally:
30
30
 
31
31
  ```html
32
- <script async src="https://ga.jspm.io/npm:es-module-shims@1.5.8/dist/es-module-shims.js"></script>
32
+ <script async src="https://ga.jspm.io/npm:es-module-shims@1.5.9/dist/es-module-shims.js"></script>
33
33
 
34
34
  <!-- https://generator.jspm.io/#U2NhYGBkDM0rySzJSU1hKEpNTC5xMLTQM9Az0C1K1jMAAKFS5w0gAA -->
35
35
  <script type="importmap">
@@ -1,4 +1,4 @@
1
- /* ES Module Shims 1.5.8 */
1
+ /* ES Module Shims 1.5.9 */
2
2
  (function () {
3
3
 
4
4
  const hasWindow = typeof window !== 'undefined';
@@ -16,7 +16,7 @@
16
16
  const importHook = globalHook(shimMode && esmsInitOptions.onimport);
17
17
  const resolveHook = globalHook(shimMode && esmsInitOptions.resolve);
18
18
  let fetchHook = esmsInitOptions.fetch ? globalHook(esmsInitOptions.fetch) : fetch;
19
- const metaHook = esmsInitOptions.meta ? globalHook(shimModule && esmsInitOptions.meta) : noop;
19
+ const metaHook = esmsInitOptions.meta ? globalHook(shimMode && esmsInitOptions.meta) : noop;
20
20
 
21
21
  const skip = esmsInitOptions.skip ? new RegExp(esmsInitOptions.skip) : null;
22
22
 
@@ -44,10 +44,6 @@
44
44
  const cssModulesEnabled = enable.includes('css-modules');
45
45
  const jsonModulesEnabled = enable.includes('json-modules');
46
46
 
47
- function setShimMode () {
48
- shimMode = true;
49
- }
50
-
51
47
  const edge = !navigator.userAgentData && !!navigator.userAgent.match(/Edge\/\d+\.\d+/);
52
48
 
53
49
  const baseUrl = hasDocument
@@ -66,6 +62,32 @@
66
62
 
67
63
  function fromParent (parent) {
68
64
  return parent ? ` imported from ${parent}` : '';
65
+ }
66
+
67
+ let importMapSrcOrLazy = false;
68
+
69
+ function setImportMapSrcOrLazy () {
70
+ importMapSrcOrLazy = true;
71
+ }
72
+
73
+ // shim mode is determined on initialization, no late shim mode
74
+ if (!shimMode) {
75
+ if (document.querySelectorAll('script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]').length) {
76
+ shimMode = true;
77
+ }
78
+ else {
79
+ let seenScript = false;
80
+ for (const script of document.querySelectorAll('script[type=module],script[type=importmap]')) {
81
+ if (!seenScript) {
82
+ if (script.type === 'module' && !script.ep)
83
+ seenScript = true;
84
+ }
85
+ else if (script.type === 'importmap' && seenScript) {
86
+ importMapSrcOrLazy = true;
87
+ break;
88
+ }
89
+ }
90
+ }
69
91
  }
70
92
 
71
93
  const backslashRegEx = /\\/g;
@@ -243,7 +265,7 @@
243
265
  function dynamicImportScript (url, { errUrl = url } = {}) {
244
266
  err = undefined;
245
267
  const src = createBlob(`import*as m from'${url}';self._esmsi=m`);
246
- const s = Object.assign(document.createElement('script'), { type: 'module', src });
268
+ const s = Object.assign(document.createElement('script'), { type: 'module', src, ep: true });
247
269
  s.setAttribute('nonce', nonce);
248
270
  s.setAttribute('noshim', '');
249
271
  const p = new Promise((resolve, reject) => {
@@ -402,36 +424,15 @@
402
424
  }
403
425
 
404
426
  let importMap = { imports: {}, scopes: {} };
405
- let importMapSrcOrLazy = false;
406
427
  let baselinePassthrough;
407
428
 
408
429
  const initPromise = featureDetectionPromise.then(() => {
409
- // shim mode is determined on initialization, no late shim mode
410
- if (!shimMode) {
411
- if (document.querySelectorAll('script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]').length) {
412
- setShimMode();
413
- }
414
- else {
415
- let seenScript = false;
416
- for (const script of document.querySelectorAll('script[type=module],script[type=importmap]')) {
417
- if (!seenScript) {
418
- if (script.type === 'module')
419
- seenScript = true;
420
- }
421
- else if (script.type === 'importmap') {
422
- importMapSrcOrLazy = true;
423
- break;
424
- }
425
- }
426
- }
427
- }
428
430
  baselinePassthrough = esmsInitOptions.polyfillEnable !== true && supportsDynamicImport && supportsImportMeta && supportsImportMaps && (!jsonModulesEnabled || supportsJsonAssertions) && (!cssModulesEnabled || supportsCssAssertions) && !importMapSrcOrLazy && !false;
429
431
  if (hasDocument) {
430
432
  if (!supportsImportMaps) {
431
433
  const supports = HTMLScriptElement.supports || (type => type === 'classic' || type === 'module');
432
434
  HTMLScriptElement.supports = type => type === 'importmap' || supports(type);
433
435
  }
434
-
435
436
  if (shimMode || !baselinePassthrough) {
436
437
  new MutationObserver(mutations => {
437
438
  for (const mutation of mutations) {
@@ -476,7 +477,7 @@
476
477
  if (!shimMode)
477
478
  acceptingImportMaps = false;
478
479
  await importMapPromise;
479
- if (importHook) await importHook(id, typeof args[1] !== 'string' ? args[1] : {}, parentUrl);
480
+ if (importHook) await importHook(url, typeof fetchOpts !== 'string' ? fetchOpts : {}, '');
480
481
  // early analysis opt-out - no need to even fetch if we have feature support
481
482
  if (!shimMode && baselinePassthrough) {
482
483
  // for polyfill case, only dynamic import needs a return value here, and dynamic import will never pass nativelyLoaded
@@ -824,7 +825,7 @@
824
825
  if (script.src) {
825
826
  if (!shimMode)
826
827
  return;
827
- importMapSrcOrLazy = true;
828
+ setImportMapSrcOrLazy();
828
829
  }
829
830
  if (acceptingImportMaps) {
830
831
  importMapPromise = importMapPromise
@@ -1,4 +1,4 @@
1
- /* ES Module Shims Wasm 1.5.8 */
1
+ /* ES Module Shims Wasm 1.5.9 */
2
2
  (function () {
3
3
 
4
4
  const hasWindow = typeof window !== 'undefined';
@@ -16,7 +16,7 @@
16
16
  const importHook = globalHook(shimMode && esmsInitOptions.onimport);
17
17
  const resolveHook = globalHook(shimMode && esmsInitOptions.resolve);
18
18
  let fetchHook = esmsInitOptions.fetch ? globalHook(esmsInitOptions.fetch) : fetch;
19
- const metaHook = esmsInitOptions.meta ? globalHook(shimModule && esmsInitOptions.meta) : noop;
19
+ const metaHook = esmsInitOptions.meta ? globalHook(shimMode && esmsInitOptions.meta) : noop;
20
20
 
21
21
  const skip = esmsInitOptions.skip ? new RegExp(esmsInitOptions.skip) : null;
22
22
 
@@ -44,10 +44,6 @@
44
44
  const cssModulesEnabled = enable.includes('css-modules');
45
45
  const jsonModulesEnabled = enable.includes('json-modules');
46
46
 
47
- function setShimMode () {
48
- shimMode = true;
49
- }
50
-
51
47
  const edge = !navigator.userAgentData && !!navigator.userAgent.match(/Edge\/\d+\.\d+/);
52
48
 
53
49
  const baseUrl = hasDocument
@@ -66,6 +62,32 @@
66
62
 
67
63
  function fromParent (parent) {
68
64
  return parent ? ` imported from ${parent}` : '';
65
+ }
66
+
67
+ let importMapSrcOrLazy = false;
68
+
69
+ function setImportMapSrcOrLazy () {
70
+ importMapSrcOrLazy = true;
71
+ }
72
+
73
+ // shim mode is determined on initialization, no late shim mode
74
+ if (!shimMode) {
75
+ if (document.querySelectorAll('script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]').length) {
76
+ shimMode = true;
77
+ }
78
+ else {
79
+ let seenScript = false;
80
+ for (const script of document.querySelectorAll('script[type=module],script[type=importmap]')) {
81
+ if (!seenScript) {
82
+ if (script.type === 'module' && !script.ep)
83
+ seenScript = true;
84
+ }
85
+ else if (script.type === 'importmap' && seenScript) {
86
+ importMapSrcOrLazy = true;
87
+ break;
88
+ }
89
+ }
90
+ }
69
91
  }
70
92
 
71
93
  const backslashRegEx = /\\/g;
@@ -408,36 +430,15 @@
408
430
  }
409
431
 
410
432
  let importMap = { imports: {}, scopes: {} };
411
- let importMapSrcOrLazy = false;
412
433
  let baselinePassthrough;
413
434
 
414
435
  const initPromise = featureDetectionPromise.then(() => {
415
- // shim mode is determined on initialization, no late shim mode
416
- if (!shimMode) {
417
- if (document.querySelectorAll('script[type=module-shim],script[type=importmap-shim],link[rel=modulepreload-shim]').length) {
418
- setShimMode();
419
- }
420
- else {
421
- let seenScript = false;
422
- for (const script of document.querySelectorAll('script[type=module],script[type=importmap]')) {
423
- if (!seenScript) {
424
- if (script.type === 'module')
425
- seenScript = true;
426
- }
427
- else if (script.type === 'importmap') {
428
- importMapSrcOrLazy = true;
429
- break;
430
- }
431
- }
432
- }
433
- }
434
436
  baselinePassthrough = esmsInitOptions.polyfillEnable !== true && supportsDynamicImport && supportsImportMeta && supportsImportMaps && (!jsonModulesEnabled || supportsJsonAssertions) && (!cssModulesEnabled || supportsCssAssertions) && !importMapSrcOrLazy && !false;
435
437
  if (hasDocument) {
436
438
  if (!supportsImportMaps) {
437
439
  const supports = HTMLScriptElement.supports || (type => type === 'classic' || type === 'module');
438
440
  HTMLScriptElement.supports = type => type === 'importmap' || supports(type);
439
441
  }
440
-
441
442
  if (shimMode || !baselinePassthrough) {
442
443
  new MutationObserver(mutations => {
443
444
  for (const mutation of mutations) {
@@ -482,7 +483,7 @@
482
483
  if (!shimMode)
483
484
  acceptingImportMaps = false;
484
485
  await importMapPromise;
485
- if (importHook) await importHook(id, typeof args[1] !== 'string' ? args[1] : {}, parentUrl);
486
+ if (importHook) await importHook(url, typeof fetchOpts !== 'string' ? fetchOpts : {}, '');
486
487
  // early analysis opt-out - no need to even fetch if we have feature support
487
488
  if (!shimMode && baselinePassthrough) {
488
489
  // for polyfill case, only dynamic import needs a return value here, and dynamic import will never pass nativelyLoaded
@@ -830,7 +831,7 @@
830
831
  if (script.src) {
831
832
  if (!shimMode)
832
833
  return;
833
- importMapSrcOrLazy = true;
834
+ setImportMapSrcOrLazy();
834
835
  }
835
836
  if (acceptingImportMaps) {
836
837
  importMapPromise = importMapPromise
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "es-module-shims",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "description": "Shims for the latest ES module features",
5
5
  "main": "dist/es-module-shims.js",
6
6
  "exports": {
package/CHANGELOG.md DELETED
@@ -1,298 +0,0 @@
1
- ES Module Shims 1.5.1 (2022/03/17)
2
- * Deps: Update to es-module-lexer@0.10.4 (#273)
3
-
4
- ES Module Shims 1.5.0 (2022/03/17)
5
- * Feat: Import hook, meta hook, sync resolver implementation, deprecating async resolver (#268)
6
- * Deps: Update to es-module-lexer@0.10.3 (#272)
7
-
8
- ES Module Shims 1.4.7 (2022/02/23)
9
- * Feat: Alternative IFrame injection to avoid navigation event on Android (#265)
10
- * Deps: Update to es-module-lexer@0.10.0 (#266)
11
-
12
- ES Module Shims 1.4.6 (2022/02/15)
13
- * Feat: Improve fetch content type error failure context (https://github.com/guybedford/es-module-shims/pull/263)
14
- * Feat: Refactor error handling paths, use `reportError` when possible (https://github.com/guybedford/es-module-shims/pull/264)
15
-
16
- ES Module Shims 1.4.5 (2022/02/12)
17
- * Feat: Allow import map overrides with option (https://github.com/guybedford/es-module-shims/pull/257, @lewisl@9029)
18
- * Feat: Additional fetch error context (https://github.com/guybedford/es-module-shims/pull/256)
19
- * Fix: dynamic import context with import assertions (https://github.com/guybedford/es-module-shims/pull/260, @ICodeMyOwnLife)
20
- * Docs: Clarify modulepreload-shim (https://github.com/guybedford/es-module-shims/pull/261, @LarsDenBakker)
21
-
22
- ES Module Shims 1.4.4 (2022/02/03)
23
- * Fix: import.meta.resolve support for inline scripts (https://github.com/guybedford/es-module-shims/pull/251)
24
- * Fix: CSS imports unquoted URL normalization (https://github.com/guybedford/es-module-shims/pull/252)
25
- * Fix: Reword polyfill info message (https://github.com/guybedford/es-module-shims/pull/253)
26
-
27
- ES Module Shims 1.4.3 (2022/01/25)
28
- * Feature: Support import map overrides when existing resolution matches new resolution (https://github.com/guybedford/es-module-shims/pull/249, @vovacodes)
29
- * Fix: Import assertions support with dynamic imports (https://github.com/guybedford/es-module-shims/pull/248)
30
-
31
- ES Module Shims 1.4.2 (2022/01/24)
32
- * Fix: optional catch binding in `isUrl` function (@thepassle, https://github.com/guybedford/es-module-shims/pull/246)
33
-
34
- ES Module Shims 1.4.1 (2021/12/15)
35
- * Fix: Firefox parse error stacks (https://github.com/guybedford/es-module-shims/pull/239)
36
-
37
- ES Module Shims 1.4.0 (2021/12/14)
38
- * Feature: "enforceIntegrity" option and "modulepreload-shim" support for secure shim mode with integrity (https://github.com/guybedford/es-module-shims/pull/236)
39
- * Fix: Safari parse error stacks (https://github.com/guybedford/es-module-shims/pull/238)
40
- * Note: Polyfill mode console note when expected native errors are present (https://github.com/guybedford/es-module-shims/pull/237)
41
-
42
- ES Module Shims 1.3.6 (2021/12/07)
43
- * Fix resolve hook via esms options (#233, @ffortier)
44
-
45
- ES Module Shims 1.3.5 (2021/12/02)
46
- * Fix trailing comment regex for source mapping normalization with trailling comments (https://github.com/guybedford/es-module-shims/pull/231)
47
-
48
- ES Module Shims 1.3.4 (2021/12/02)
49
- * Support source mapping normalization with trailing comments (https://github.com/guybedford/es-module-shims/pull/229)
50
-
51
- ES Module Shims 1.3.3 (2021/11/30))
52
- * Remove use of document.write (https://github.com/guybedford/es-module-shims/pull/227, @lewisl9029)
53
-
54
- ES Module Shims 1.3.2 (2021/11/16)
55
- * Fix CSP nonce detection (https://github.com/guybedford/es-module-shims/pull/223, @MathiasWP)
56
-
57
- ES Module Shims 1.3.1 (2021/11/04)
58
- * Feature: Support "async" attribute ordering on polyfill and shim scripts (https://github.com/guybedford/es-module-shims/pull/221)
59
- * Fix: Sourcemap regex fix (https://github.com/guybedford/es-module-shims/pull/218)
60
- * Fix: Polyfill duplicate instance bug (https://github.com/guybedford/es-module-shims/pull/220)
61
-
62
- ES Module Shims 1.3.0 (2021/10/14)
63
- * Feature: Shim mode function to get import map, dynamic map overrides now throw (https://github.com/guybedford/es-module-shims/pull/213, @lewisl9029)
64
- * Feature: Upgrade to es-module-lexer@0.9.3 with import / export strings support (https://github.com/guybedford/es-module-shims/pull/210)
65
- * Performance: Disable subgraph passthrough (https://github.com/guybedford/es-module-shims/pull/208)
66
- * Fix: Undefined error callbacks for Safari (https://github.com/guybedford/es-module-shims/pull/209)
67
-
68
- ES Module Shims 1.2.0 (2021/10/04)
69
- * Fix: Bug where fetch hook was renamed to "fetchHook" instead of "fetch" (https://github.com/guybedford/es-module-shims/pull/205)
70
-
71
- ES Modules Shims 1.1.0 (2021/09/28)
72
- * Feature: Enable polyfill when loading a module before the import map. This resolves browser extension issues (https://github.com/WICG/import-maps/issues/248) (https://github.com/guybedford/es-module-shims/pull/203)
73
- * Fix: Upgrade to es-module-lexer@0.9.1 supporting large source analysis (https://github.com/guybedford/es-module-shims/pull/203)
74
-
75
- ES Module Shims 1.0.4 (2021/09/22)
76
- * Fix typo bug in import maps call (https://github.com/guybedford/es-module-shims/pull/198)
77
-
78
- ES Module Shims 1.0.3 (2021/09/22)
79
- * Lifecycle event polishing and fixes (https://github.com/guybedford/es-module-shims/pull/197)
80
-
81
- ES Module Shims 1.0.2 (2021/09/22)
82
- * Fix native passthrough for contextual `importShim` dynamic import to still full reconstruct top-level resolution by parsing import maps (https://github.com/guybedford/es-module-shims/pull/196)
83
- * Remove skip option default (https://github.com/guybedford/es-module-shims/pull/195)
84
-
85
- ES Module Shims 1.0.1 (2021/09/22)
86
- * Improved native passthrough performance, with some load event restrictions on unstable new features within release cutoff (https://github.com/guybedford/es-module-shims/pull/194)
87
-
88
- ES Module Shims 1.0.0 (2021/09/20)
89
- * CSP support build by default (https://github.com/guybedford/es-module-shims/pull/193)
90
-
91
- ES Module Shims 0.15.1 (2021/09/18)
92
- * Significant performance improvements to CSP build via asm.js (https://github.com/guybedford/es-module-shims/pull/190) and direct dynamic import (https://github.com/guybedford/es-module-shims/pull/191)
93
-
94
- ES Module Shims 0.15.0 (2021/09/17)
95
- * Various perf and behaviour polishing (https://github.com/guybedford/es-module-shims/pull/188)
96
- * Revert DOM mutator nested queryString checks (https://github.com/guybedford/es-module-shims/pull/189)
97
- * Fetch pooling (https://github.com/guybedford/es-module-shims/pull/184)
98
-
99
- ES Module Shims 0.14.0 (2021/09/13)
100
- * CSP compatible ES Module Shims build (https://github.com/guybedford/es-module-shims/pull/183)
101
-
102
- ES Module Shims 0.13.1 (2021/09/10)
103
- * Fix to ensure global script errors always propagate to the console (https://github.com/guybedford/es-module-shims/pull/182)
104
-
105
- ES Module Shims 0.13.0 (2021/09/07)
106
- * Breaking Change: Polyfill mode restricts behaviours to native baseline support (https://github.com/guybedford/es-module-shims/pull/173)
107
- * Breaking Change: JSON and CSS modules require explicit enabling (https://github.com/guybedford/es-module-shims/pull/172)
108
- * Breaking Change: Adds the "exports" field to encapsulate the package entry point (https://github.com/guybedford/es-module-shims/pull/177)
109
- * Feature: Support script DOM "load" events (https://github.com/guybedford/es-module-shims/pull/170)
110
- * Improve browser compatibility for Weixin browser (https://github.com/guybedford/es-module-shims/pull/165, @xxgjzftd)
111
- * Fix dynamic import polyfill recursion in Firefox 60 (https://github.com/guybedford/es-module-shims/pull/176)
112
- * Change compat to Edge 17+ (https://github.com/guybedford/es-module-shims/pull/178)
113
-
114
- ES Module Shims 0.12.8 (2021/08/24)
115
- * Fix preload deduping for re-injection of preloads (https://github.com/guybedford/es-module-shims/pull/164)
116
-
117
- ES Module Shims 0.12.7 (2021/08/23)
118
- * Support re-triggering DOM load events for static script executions (https://github.com/guybedford/es-module-shims/pull/162)
119
-
120
- ES Module Shims 0.12.6 (2021/08/20)
121
- * Fix regression where inline scripts in polyfill mode on supported browsers would throw an unnecessary error (https://github.com/guybedford/es-module-shims/pull/159)
122
-
123
- ES Module Shims 0.12.5 (2021/08/19)
124
- * Support CSS module scripts (https://github.com/guybedford/es-module-shims/pull/154)
125
-
126
- ES Module Shims 0.12.4 (2021/08/18)
127
- * Fix eager modulepreload preloading bug from 0.12.3 (https://github.com/guybedford/es-module-shims/pull/152)
128
-
129
- ES Module Shims 0.12.3 (2021/08/17)
130
- * Support resolve hook (https://github.com/guybedford/es-module-shims/pull/146, @zhoukekestar)
131
- * Internal preload cache to avoid double network requests (https://github.com/guybedford/es-module-shims/pull/149)
132
-
133
- ES Module Shims 0.12.2 (2021/07/23)
134
- * Support processing nested tags in mutaton observer (https://github.com/guybedford/es-module-shims/pull/144, @dbackeus)
135
-
136
- ES Module SHims 0.12.1 (2021/06/29)
137
- * Fixup dynamic injection of modulepreload (f231485)
138
-
139
- ES Module Shims 0.12.0 (2021/06/29)
140
- * Support modulepreload polyfilling (https://github.com/guybedford/es-module-shims/pull/141)
141
-
142
- ES Module Shims 0.11.1 (2021/06/17)
143
- * Fixup replacement offset regression (https://github.com/guybedford/es-module-shims/pull/140)
144
-
145
- ES Module Shims 0.11.0 (2021/06/15)
146
- * Support for JSON modules and import assertions (https://github.com/guybedford/es-module-shims/commit/2d7eb193986d51733fa6394ad699ee70e5060a13)
147
- * Fix dynamic import bug in Firefox <67 (https://github.com/guybedford/es-module-shims/commit/3f3d71fc3dd76ba1a965ae00285823672f34c138)
148
-
149
- ES Module Shims 0.10.7 (2021/06/10)
150
- * Fix import map feature detection in Safari (https://github.com/guybedford/es-module-shims/pull/131, @heypiotr)
151
-
152
- ES Module Shims 0.10.6 (2021/06/05)
153
- * Support for revoking blob URLs (https://github.com/guybedford/es-module-shims/pull/124, @vovacodes)
154
- * Include typescript types in published package (https://github.com/guybedford/es-module-shims/pull/125, @vovacodes)
155
- * Fix support for dynamic import in inline scripts (https://github.com/guybedford/es-module-shims/pull/128)
156
- * Polyfill bug fixes (https://github.com/guybedford/es-module-shims/pull/130)
157
-
158
- ES Module Shims 0.10.5 (2021/05/14)
159
- * Fix immediately added dynamic import maps (https://github.com/guybedford/es-module-shims/pull/123, @vovacodes)
160
- * Handle relative sourceURL and sourceMappingURL (https://github.com/guybedford/es-module-shims/pull/122, @vovacodes)
161
-
162
- ES Module Shims 0.10.4 (2021/04/11)
163
- * Fix cycle handling regression (https://github.com/guybedford/es-module-shims/issues/119)
164
-
165
- ES Module Shims 0.10.3 (2021/03/22)
166
- * Fix shim mode execution bug (https://github.com/guybedford/es-module-shims/issues/117)
167
-
168
- ES Module Shims 0.10.2 (2021/03/18)
169
- * Fix inline module-shim execution in non-polyfill mode (https://github.com/guybedford/es-module-shims/issues/115)
170
- * Bug fix for scope key resolution to be relative to baseURL not scopeURL (https://github.com/guybedford/es-module-shims/pull/116)
171
-
172
- ES Module Shims 0.10.1 (2021/02/27)
173
- * Various bug fixes for polyfill mode
174
-
175
- ES Module Shims 0.10.0 (2021/02/27)
176
- * Feature: Comprehensive polyfill mode (https://github.com/guybedford/es-module-shims/pull/113)
177
-
178
- ES Module Shims 0.9.0 (2021/01/23)
179
- * Breaking: New initialOptions global API instead of hooking importShims properties (https://github.com/guybedford/es-module-shims/pull/109, @lewisl9029)
180
- * Fix inline script double execution issue (https://github.com/guybedford/es-module-shims/pull/111)
181
-
182
- ES Module Shims 0.8.0 (2020/12/23)
183
- * Fix URL to URL import map mappings (https://github.com/guybedford/es-module-shims/pull/107, @vovacodes)
184
- * Include TypeScript types (https://github.com/guybedford/es-module-shims/pull/104, @ifiokjr)
185
- * Fix processScripts to permit dynamic additions (https://github.com/guybedford/es-module-shims/pull/102, @ifiokjr)
186
- * Remove unnecessary sourceMappingURL rebase (https://github.com/guybedford/es-module-shims/pull/98)
187
-
188
- ES Module Shims 0.7.1 (2020/10/30)
189
- * Update to es-module-shims@0.3.26
190
- * Fixup onerror hook to throw by default (#96)
191
-
192
- ES Module Shims 0.7.0 (2020/10/06)
193
- * Process scripts in order, global importShims.onerror hook (a3e3f639e835d6)
194
-
195
- ES Module Shims 0.6.0 (2020/09/17)
196
- * Resolve scopes to the baseURL not the scopeURL (d2893159e4b66c43)
197
-
198
- ES Module Shims 0.5.2 (2020/08/07)
199
- * import.meta.resolve (https://github.com/guybedford/es-module-shims/pull/89)
200
-
201
- ES Module Shims 0.5.0 (2020/07/24)
202
- * Dynamic import map support (https://github.com/guybedford/es-module-shims/pull/85)
203
- * Remove support for array fallbacks, builtin modules, workers, CSS modules, JSON modules, Wasm modules (https://github.com/guybedford/es-module-shims/pull/84)
204
- * Depcache implementation (https://github.com/guybedford/es-module-shims/pull/78)
205
-
206
- ES Module Shims 0.4.6 (2019/10/21)
207
- * Implement fetch hook (https://github.com/guybedford/es-module-shims/pull/73)
208
-
209
- ES Module Shims 0.4.5 (2019/09/18)
210
- * Fixup incorrect pageBaseUrl reference (7391880e836712)
211
- * Fixup hasDocument check for Firefox (https://github.com/guybedford/es-module-shims/issues/62)
212
-
213
- ES Module Shims 0.4.4 (2019/09/09)
214
- * Fix to ensure build against latest es-module-lexer
215
-
216
- ES Module Shims 0.4.3 (2019/09/08)
217
- * Remove unnecessary Object.assign polyfill (https://github.com/guybedford/es-module-shims/commit/6bc90c059377e254e71b6695368215ce6ebff7d7)
218
- * Rework standard module detection (https://github.com/guybedford/es-module-shims/pull/62)
219
-
220
- ES Module Shims 0.4.2 (2019/08/31)
221
- * Fixes a critical Edge bug with parallel execution using a graph inlining to ensure execution order (https://github.com/guybedford/es-module-shims/pull/57, https://github.com/microsoft/ChakraCore/issues/6261)
222
- * `x-javascript` MIME type support (https://github.com/guybedford/es-module-shims/pull/56)
223
-
224
- ES Module Shims 0.4.1 (2019/08/30)
225
- * Support text/javascript MIME type (https://github.com/guybedford/es-module-shims/pull/53)
226
-
227
- ES Module Shims 0.4.0 (2019/08/29)
228
- * Support for cascading import maps (https://github.com/guybedford/es-module-shims/pull/49)
229
- * Use strict Content-Type checks for modules (https://github.com/guybedford/es-module-shims/pull/47)
230
-
231
- ES Module Shims 0.3.2 (2019/08/29)
232
- * Update to ES module lexer 0.3.12
233
-
234
- ES Module Shims 0.3.1 (2019/08/28)
235
- * Updates to ES module lexer 0.3.11 including better errors and invalid syntax handling (https://github.com/guybedford/es-module-shims/pull/46)
236
-
237
- ES Module Shims 0.3.0 (2019/08/25)
238
- * Implement CSS modules (https://github.com/guybedford/es-module-shims/pull/41)
239
- * Upgrade to Wasm-based ES module lexer for performance (https://github.com/guybedford/es-module-shims/38)
240
- * Fix sourceMappingURL support in Firefox (https://github.com/guybedford/es-module-shims/pull/37, @MicahZoltu)
241
- * Separate ES module lexer into its own project (https://github.com/guybedford/es-module-shims/pull/36, @LarsDenBakker)
242
-
243
- ES Module Shims 0.2.15 (2019/07/28)
244
- * Early import map resolution (https://github.com/guybedford/es-module-shims/pull/32)
245
-
246
- ES Module Shims 0.2.14 (2019/07/17)
247
- * Support import map fallbacks by ignoring std modules (https://github.com/guybedford/es-module-shims/pull/28, @thepassle)
248
- * Support path separators in module URLs containing hashes and query strings (https://github.com/guybedford/es-module-shims/pull/30, @LarsDenBakker)
249
-
250
- ES Module Shims 0.2.13 (2019/06/29)
251
- * Support JSON module imports (https://github.com/guybedford/es-module-shims/pull/27)
252
-
253
- ES Module Shims 0.2.12 (2019/06/29)
254
- * Support `<base>` tag for baseURL (https://github.com/guybedford/es-module-shims/pull/26, @LarsDenBakker)
255
-
256
- ES Module Shims 0.2.11 (2019/06/26)
257
- * Fix use of object spread in Edge (https://github.com/guybedford/es-module-shims/pull/25, @LarsDenBakker)
258
-
259
- ES Module Shims 0.2.10 (2019/06/25)
260
- * Fix Worker constructor options bug (https://github.com/guybedford/es-module-shims/pull/23)
261
-
262
- ES Module Shims 0.2.9 (2019/06/24)
263
- * Fixup WorkerShim worker output
264
-
265
- ES Module Shims 0.2.8 (2019/06/24)
266
- * Support WorkerShim module workers (https://github.com/guybedford/es-module-shims/pull/17 by @costingeana)
267
-
268
- ES Module Shims 0.2.7 (2019/05/04)
269
- * Fix imports minification case (https://github.com/guybedford/es-module-shims/issues/11)
270
-
271
- ES Module Shims 0.2.6 (2019/04/30)
272
- * Fixup dynamic import regression
273
-
274
- ES Module Shims 0.2.5 (2019/04/30)
275
- * Fix various lexing edge cases around dynamic import
276
-
277
- ES Module Shims 0.2.4
278
- * Add "type": "module" to package.json
279
-
280
- ES Module Shims 0.2.3 (2019/03/29)
281
- * Fixup minification build
282
- * Further lexer adjustments (2ca2589b1)
283
-
284
- ES Module Shims 0.2.2 (2019/03/28)
285
- * Fixup export syntax parser bug (51396799)
286
-
287
- ES Module Shims 0.2.1 (2019/02/25)
288
- * Fix support for URL imports
289
-
290
- ES Module Shims 0.2.0 (2019/01/12)
291
- * Update to latest import maps spec (e6e64748)
292
-
293
- ES Module Shims 0.1.15 (2018/10/09)
294
- * Use responseURL for resolution for spec compliant redirects (689aed0)
295
-
296
- ES Module Shims 0.1.14 (2018/10/06)
297
- * Fix Safari WASM support (7cf31ac4)
298
- * add sourceURL to cycle shells for debugging (80438731)