@jsenv/core 38.3.5 → 38.3.7

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
@@ -16,12 +16,13 @@ As a result it can be enjoyed by people without much experience in tooling or se
16
16
 
17
17
  # The best parts
18
18
 
19
- - Tools and habits used in source files [can be reused in test files](<https://github.com/jsenv/core/wiki/D)-Test>).
19
+ - Test files are [executed like standard files](<https://github.com/jsenv/core/wiki/D)-Test#14-executing-a-single-test>)
20
+ - [Isolated environment](<https://github.com/jsenv/core/wiki/D)-Test#33-isolated-environment>) for each test file
21
+ - [Execute tests in multiple browsers](<https://github.com/jsenv/core/wiki/D)-Test#32-execute-on-more-browsers>): Chrome, Safari, Firefox
20
22
  - A [large browser support during dev](<https://github.com/jsenv/core/wiki/B)-Dev#21-browser-support>). Because some people might be happy to use an other browser than the latest chrome during dev. Moreover it is useful to reproduce bug specific to certain browsers.
21
23
  - A [large browser support after build](<https://github.com/jsenv/core/wiki/C)-Build#211-maximal-browser-support>). Because some product still needs to support old versions of Firefox, Chrome and Safari.
22
24
  - A [single set of files during build](<https://github.com/jsenv/core/wiki/C)-Build#212-same-build-for-all-browsers>). Because a single one is simpler to properly support in every aspects.
23
25
  - Versioning during build is robust and <a href="https://bundlers.tooling.report/hashing/avoid-cascade/" target="_blank">avoids cascading hash changes</a><sup>↗</sup>
24
- - Ability to [execute tests in multiple browsers](<https://github.com/jsenv/core/wiki/D)-Test#32-executing-on-more-browsers>): Chrome, Safari, Firefox
25
26
  - An advanced support of top level await, allowing to use it everywhere
26
27
  - An advanced support of web workers including worker type module
27
28
  - Unlock js module features on a regular `<script>` when needed. If you need the behaviour of `<script>` which is to block execution of following `<script>` in the page, you'll be happy to [still have the power of js modules](<https://github.com/jsenv/core/wiki/G)-Plugins#22-asjsclassic>), like imports, at your disposal.
@@ -3761,6 +3761,7 @@ const createLog = ({
3761
3761
  const { columns = 80, rows = 24 } = stream;
3762
3762
 
3763
3763
  const log = {
3764
+ destroyed: false,
3764
3765
  onVerticalOverflow: () => {},
3765
3766
  };
3766
3767
 
@@ -3825,6 +3826,9 @@ const createLog = ({
3825
3826
  };
3826
3827
 
3827
3828
  const write = (string, outputFromOutside = streamOutputSpy()) => {
3829
+ if (log.destroyed) {
3830
+ throw new Error("Cannot write log after destroy");
3831
+ }
3828
3832
  if (!lastOutput) {
3829
3833
  doWrite(string);
3830
3834
  return;
@@ -3845,6 +3849,7 @@ const createLog = ({
3845
3849
  };
3846
3850
 
3847
3851
  const destroy = () => {
3852
+ log.destroyed = true;
3848
3853
  if (streamOutputSpy) {
3849
3854
  streamOutputSpy(); // this uninstalls the spy
3850
3855
  streamOutputSpy = null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/core",
3
- "version": "38.3.5",
3
+ "version": "38.3.7",
4
4
  "description": "Tool to develop, test and build js projects",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -68,14 +68,14 @@
68
68
  "@jsenv/importmap": "1.2.1",
69
69
  "@jsenv/integrity": "0.0.1",
70
70
  "@jsenv/js-module-fallback": "1.3.9",
71
- "@jsenv/log": "3.4.2",
71
+ "@jsenv/log": "3.4.3",
72
72
  "@jsenv/node-esm-resolution": "1.0.1",
73
- "@jsenv/plugin-bundling": "2.5.8",
73
+ "@jsenv/plugin-bundling": "2.6.0",
74
74
  "@jsenv/plugin-minification": "1.5.4",
75
75
  "@jsenv/plugin-supervisor": "1.3.9",
76
76
  "@jsenv/plugin-transpilation": "1.3.8",
77
77
  "@jsenv/runtime-compat": "1.2.0",
78
- "@jsenv/server": "15.1.5",
78
+ "@jsenv/server": "15.1.6",
79
79
  "@jsenv/sourcemap": "1.2.4",
80
80
  "@jsenv/url-meta": "8.1.0",
81
81
  "@jsenv/urls": "2.2.1",
@@ -87,14 +87,14 @@
87
87
  "@jsenv/assert": "./packages/independent/assert/",
88
88
  "@jsenv/core": "./",
89
89
  "@jsenv/eslint-config": "./packages/independent/eslint-config/",
90
- "@jsenv/file-size-impact": "14.1.4",
90
+ "@jsenv/file-size-impact": "14.1.5",
91
91
  "@jsenv/https-local": "3.0.7",
92
92
  "@jsenv/monorepo": "0.0.4",
93
- "@jsenv/performance-impact": "4.1.4",
93
+ "@jsenv/performance-impact": "4.2.0",
94
94
  "@jsenv/plugin-as-js-classic": "./packages/related/plugin-as-js-classic/",
95
95
  "@jsenv/test": "./packages/related/test/",
96
96
  "babel-plugin-transform-async-to-promises": "0.8.18",
97
- "eslint": "8.53.0",
97
+ "eslint": "8.54.0",
98
98
  "eslint-plugin-html": "7.1.0",
99
99
  "eslint-plugin-import": "2.29.0",
100
100
  "eslint-plugin-react": "7.33.2",