@jsenv/core 27.0.0-alpha.84 → 27.0.0-alpha.87

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 (50) hide show
  1. package/dist/html/explorer.html +1 -1
  2. package/dist/js/controllable_file.mjs +1 -1
  3. package/dist/js/event_source_client.js +3 -3
  4. package/dist/js/html_supervisor_installer.js +1 -1
  5. package/dist/js/s.js +2 -2
  6. package/dist/js/uneval.js +804 -0
  7. package/dist/main.js +11910 -1028
  8. package/dist/s.js +2 -2
  9. package/dist/s.js.map +1 -1
  10. package/package.json +17 -13
  11. package/src/build/build.js +2 -14
  12. package/src/build/inject_global_version_mappings.js +3 -3
  13. package/src/build/inject_service_worker_urls.js +1 -1
  14. package/src/build/resync_ressource_hints.js +17 -18
  15. package/src/build/version_generator.js +60 -0
  16. package/src/dev/plugins/explorer/client/explorer.html +1 -1
  17. package/src/dev/plugins/explorer/jsenv_plugin_explorer.js +1 -1
  18. package/src/dev/plugins/toolbar/jsenv_plugin_toolbar.js +3 -3
  19. package/src/omega/kitchen.js +2 -0
  20. package/src/plugins/autoreload/dev_sse/client/reload.js +6 -3
  21. package/src/plugins/autoreload/dev_sse/jsenv_plugin_dev_sse_client.js +3 -3
  22. package/src/plugins/bundling/css/bundle_css.js +1 -2
  23. package/src/plugins/bundling/js_module/bundle_js_module.js +85 -66
  24. package/src/plugins/commonjs_globals/jsenv_plugin_commonjs_globals.js +1 -1
  25. package/src/plugins/file_urls/jsenv_plugin_file_urls.js +11 -3
  26. package/src/plugins/html_supervisor/jsenv_plugin_html_supervisor.js +62 -74
  27. package/src/plugins/http_urls/jsenv_plugin_http_urls.js +10 -6
  28. package/src/plugins/import_meta_hot/html_hot_dependencies.js +9 -15
  29. package/src/plugins/import_meta_hot/jsenv_plugin_import_meta_hot.js +1 -2
  30. package/src/plugins/import_meta_scenarios/jsenv_plugin_import_meta_scenarios.js +1 -1
  31. package/src/plugins/importmap/jsenv_plugin_importmap.js +24 -25
  32. package/src/plugins/inject_globals/inject_globals.js +3 -3
  33. package/src/plugins/inline/jsenv_plugin_html_inline_content.js +39 -41
  34. package/src/plugins/inline/jsenv_plugin_js_inline_content.js +1 -1
  35. package/src/plugins/minification/css/minify_css.js +1 -1
  36. package/src/plugins/transpilation/as_js_classic/client/s.js +2 -2
  37. package/src/plugins/transpilation/as_js_classic/jsenv_plugin_as_js_classic.js +2 -2
  38. package/src/plugins/transpilation/as_js_classic/jsenv_plugin_as_js_classic_html.js +41 -63
  39. package/src/plugins/transpilation/babel/global_this/babel_plugin_global_this_as_jsenv_import.js +2 -3
  40. package/src/plugins/transpilation/babel/helpers/babel_plugin_babel_helpers_as_jsenv_imports.js +2 -2
  41. package/src/plugins/transpilation/babel/jsenv_plugin_babel.js +1 -1
  42. package/src/plugins/transpilation/babel/new_stylesheet/babel_plugin_new_stylesheet_as_jsenv_import.js +2 -2
  43. package/src/plugins/transpilation/babel/regenerator_runtime/babel_plugin_regenerator_runtime_as_jsenv_import.js +2 -2
  44. package/src/plugins/transpilation/css_parcel/jsenv_plugin_css_parcel.js +1 -1
  45. package/src/plugins/transpilation/jsenv_plugin_top_level_await.js +1 -1
  46. package/src/plugins/url_analysis/css/css_urls.js +1 -2
  47. package/src/plugins/url_analysis/html/html_urls.js +98 -113
  48. package/src/plugins/url_analysis/js/js_urls.js +1 -1
  49. package/src/plugins/url_analysis/jsenv_plugin_url_analysis.js +13 -6
  50. package/src/test/coverage/empty_coverage_factory.js +1 -1
@@ -2,7 +2,7 @@
2
2
  <title>Exploring</title>
3
3
  <meta name="viewport" content="width=device-width, initial-scale=1">
4
4
  <meta charset="utf-8">
5
- <link rel="icon" href="virtual:FAVICON_HREF">
5
+ <link rel="icon" href="ignore:FAVICON_HREF">
6
6
  <style>button:focus, a:focus, input:focus, [data-contains-hidden-input] input:focus + * {
7
7
  outline-offset: -2px;
8
8
  outline-style: none;
@@ -1,5 +1,5 @@
1
1
  import v8 from "node:v8";
2
- import { uneval } from "@jsenv/uneval";
2
+ import { u as uneval } from "./uneval.js";
3
3
  import { performance, PerformanceObserver } from "node:perf_hooks";
4
4
 
5
5
  const startObservingPerformances = () => {
@@ -1,5 +1,5 @@
1
1
  import { urlHotMetas } from "./import_meta_hot.js";
2
- import { htmlAttributeSrcSet } from "@jsenv/utils/src/html_ast/html_attribute_src_set.js";
2
+ import { parseSrcSet, stringifySrcSet } from "@jsenv/ast/src/html/html_src_set.js";
3
3
 
4
4
  /* eslint-env browser */
5
5
  const createEventSourceConnection = (eventSourceUrl, events = {}, {
@@ -301,7 +301,7 @@ const reloadDOMNodesUsingUrl = urlToReload => {
301
301
  const srcset = img.srcset;
302
302
 
303
303
  if (srcset) {
304
- const srcCandidates = htmlAttributeSrcSet.parse(srcset);
304
+ const srcCandidates = parseSrcSet(srcset);
305
305
  srcCandidates.forEach(srcCandidate => {
306
306
  const url = new URL(srcCandidate.specifier, `${window.location.href}`);
307
307
 
@@ -312,7 +312,7 @@ const reloadDOMNodesUsingUrl = urlToReload => {
312
312
  }
313
313
  });
314
314
  mutations.push(() => {
315
- img.srcset = htmlAttributeSrcSet.stringify(srcCandidates);
315
+ img.srcset = stringifySrcSet(srcCandidates);
316
316
  });
317
317
  }
318
318
  });
@@ -1,4 +1,4 @@
1
- import { uneval } from "@jsenv/uneval";
1
+ import { u as uneval } from "./uneval.js";
2
2
 
3
3
  const unevalException = value => {
4
4
  if (value && value.hasOwnProperty("toString")) {
package/dist/js/s.js CHANGED
@@ -43,7 +43,7 @@
43
43
  }
44
44
  System.register = (deps, declare) => {
45
45
  if (!document.currentScript) {
46
- throw new Error("unexpected call")
46
+ throw new Error("unexpected call to System.register (document.currentScript is undefined)")
47
47
  }
48
48
  if (document.currentScript.__s__) {
49
49
  registerRegistry[document.currentScript.src] = [deps, declare]
@@ -169,7 +169,7 @@
169
169
 
170
170
  System.register = async (deps, declare) => {
171
171
  System.register = () => {
172
- throw new Error("unexpected call")
172
+ throw new Error("unexpected call to System.register (called outside url instantiation)")
173
173
  }
174
174
  const url = self.location.href
175
175
  registerRegistry[url] = [deps, declare]