diff --git a/.changeset/fluffy-paws-cross.md b/.changeset/fluffy-paws-cross.md deleted file mode 100644 index f055b5d2c4..0000000000 --- a/.changeset/fluffy-paws-cross.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"marko": patch ---- - -Fix issue that could happen if DOMContentLoaded was manually invoked multiple times. diff --git a/.changeset/soft-points-work.md b/.changeset/soft-points-work.md deleted file mode 100644 index 9360214960..0000000000 --- a/.changeset/soft-points-work.md +++ /dev/null @@ -1,15 +0,0 @@ ---- -"@marko/babel-utils": major -"@marko/translator-default": minor -"@marko/compiler": minor -"marko": minor ---- - -Allow parse errors to be recovered from by migrations. This adds a new ast node type of MarkoParseError. -MarkoParseError nodes can be removed during the migration stage to handle legacy syntaxes. Any MarkoParseError -left in the AST at the end of the migration phase will throw an error similar to what it would have previously -thrown synchronously. - -This also means that all parse errors can be surfaced as an aggregate error instead of bailing on the first -parse error. When the compiler is ran with `errorRecovery: true` these errors become diagnostics instead of -being thrown. diff --git a/package-lock.json b/package-lock.json index 8f2d0cfe41..4a10ae2e79 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10457,7 +10457,7 @@ }, "packages/babel-utils": { "name": "@marko/babel-utils", - "version": "5.22.1", + "version": "6.0.0", "license": "MIT", "dependencies": { "@babel/runtime": "^7.16.0", @@ -10465,7 +10465,7 @@ "relative-import-path": "^1.0.0" }, "devDependencies": { - "@marko/compiler": "^5.28.3" + "@marko/compiler": "^5.29.0" } }, "packages/babel-utils/node_modules/jsesc": { @@ -10480,7 +10480,7 @@ }, "packages/compiler": { "name": "@marko/compiler", - "version": "5.28.5", + "version": "5.29.0", "license": "MIT", "dependencies": { "@babel/code-frame": "^7.16.0", @@ -10493,7 +10493,7 @@ "@babel/runtime": "^7.16.0", "@babel/traverse": "^7.16.0", "@babel/types": "^7.16.0", - "@marko/babel-utils": "^5.22.1", + "@marko/babel-utils": "^6.0.0", "complain": "^1.6.0", "he": "^1.2.0", "htmljs-parser": "^5.4.3", @@ -10508,7 +10508,7 @@ "strip-json-comments": "^3.1.1" }, "devDependencies": { - "@marko/translator-default": "^5.26.5" + "@marko/translator-default": "^5.27.0" } }, "packages/compiler/node_modules/jsesc": { @@ -10527,11 +10527,11 @@ "integrity": "sha512-uEDMMkBCJvjTqYMBnJNxn+neiS6a0rhybQNA9RaexGor1uvKjwyHA5VcbZMZEuqXhKUWbL+WNS7PhuZVZNB7pw==" }, "packages/marko": { - "version": "5.26.5", + "version": "5.27.0", "license": "MIT", "dependencies": { - "@marko/compiler": "^5.28.5", - "@marko/translator-default": "^5.26.5", + "@marko/compiler": "^5.29.0", + "@marko/translator-default": "^5.27.0", "app-module-path": "^2.2.0", "argly": "^1.2.0", "browser-refresh-client": "1.1.4", @@ -10556,18 +10556,18 @@ }, "packages/translator-default": { "name": "@marko/translator-default", - "version": "5.26.5", + "version": "5.27.0", "license": "MIT", "dependencies": { "@babel/runtime": "^7.16.0", - "@marko/babel-utils": "^5.22.1", + "@marko/babel-utils": "^6.0.0", "escape-string-regexp": "^4.0.0", "magic-string": "^0.27.0", "self-closing-tags": "^1.0.1" }, "devDependencies": { - "@marko/compiler": "^5.28.5", - "marko": "^5.26.5" + "@marko/compiler": "^5.29.0", + "marko": "^5.27.0" }, "peerDependencies": { "@marko/compiler": "^5.16.1", @@ -12177,7 +12177,7 @@ "version": "file:packages/babel-utils", "requires": { "@babel/runtime": "^7.16.0", - "@marko/compiler": "^5.28.3", + "@marko/compiler": "^5.29.0", "jsesc": "^3.0.2", "relative-import-path": "^1.0.0" }, @@ -12200,8 +12200,8 @@ "@babel/runtime": "^7.16.0", "@babel/traverse": "^7.16.0", "@babel/types": "^7.16.0", - "@marko/babel-utils": "^5.22.1", - "@marko/translator-default": "^5.26.5", + "@marko/babel-utils": "^6.0.0", + "@marko/translator-default": "^5.27.0", "complain": "^1.6.0", "he": "^1.2.0", "htmljs-parser": "^5.4.3", @@ -12230,11 +12230,11 @@ "version": "file:packages/translator-default", "requires": { "@babel/runtime": "^7.16.0", - "@marko/babel-utils": "^5.22.1", - "@marko/compiler": "^5.28.5", + "@marko/babel-utils": "^6.0.0", + "@marko/compiler": "^5.29.0", "escape-string-regexp": "^4.0.0", "magic-string": "^0.27.0", - "marko": "^5.26.5", + "marko": "^5.27.0", "self-closing-tags": "^1.0.1" }, "dependencies": { @@ -15689,8 +15689,8 @@ "marko": { "version": "file:packages/marko", "requires": { - "@marko/compiler": "^5.28.5", - "@marko/translator-default": "^5.26.5", + "@marko/compiler": "^5.29.0", + "@marko/translator-default": "^5.27.0", "app-module-path": "^2.2.0", "argly": "^1.2.0", "browser-refresh-client": "1.1.4", diff --git a/packages/babel-utils/CHANGELOG.md b/packages/babel-utils/CHANGELOG.md index 4b218eb3ea..c7e4f41203 100644 --- a/packages/babel-utils/CHANGELOG.md +++ b/packages/babel-utils/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 6.0.0 + +### Major Changes + +- [#1980](https://github.com/marko-js/marko/pull/1980) [`9d3b34eef`](https://github.com/marko-js/marko/commit/9d3b34eefa2d0d9f9b27b9635950360b62be2f1f) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Allow parse errors to be recovered from by migrations. This adds a new ast node type of MarkoParseError. + MarkoParseError nodes can be removed during the migration stage to handle legacy syntaxes. Any MarkoParseError + left in the AST at the end of the migration phase will throw an error similar to what it would have previously + thrown synchronously. + + This also means that all parse errors can be surfaced as an aggregate error instead of bailing on the first + parse error. When the compiler is ran with `errorRecovery: true` these errors become diagnostics instead of + being thrown. + ## 5.22.1 ### Patch Changes diff --git a/packages/babel-utils/package.json b/packages/babel-utils/package.json index b9df34b333..e84e99d86f 100644 --- a/packages/babel-utils/package.json +++ b/packages/babel-utils/package.json @@ -1,7 +1,7 @@ { "name": "@marko/babel-utils", "description": "Utilities for use with Marko babel plugins.", - "version": "5.22.1", + "version": "6.0.0", "author": "Dylan Piercey ", "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md", "dependencies": { @@ -10,7 +10,7 @@ "relative-import-path": "^1.0.0" }, "devDependencies": { - "@marko/compiler": "^5.28.3" + "@marko/compiler": "^5.29.0" }, "files": [ "dist", diff --git a/packages/compiler/CHANGELOG.md b/packages/compiler/CHANGELOG.md index 24c0e7e7f8..aae0e866d5 100644 --- a/packages/compiler/CHANGELOG.md +++ b/packages/compiler/CHANGELOG.md @@ -1,5 +1,23 @@ # Change Log +## 5.29.0 + +### Minor Changes + +- [#1980](https://github.com/marko-js/marko/pull/1980) [`9d3b34eef`](https://github.com/marko-js/marko/commit/9d3b34eefa2d0d9f9b27b9635950360b62be2f1f) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Allow parse errors to be recovered from by migrations. This adds a new ast node type of MarkoParseError. + MarkoParseError nodes can be removed during the migration stage to handle legacy syntaxes. Any MarkoParseError + left in the AST at the end of the migration phase will throw an error similar to what it would have previously + thrown synchronously. + + This also means that all parse errors can be surfaced as an aggregate error instead of bailing on the first + parse error. When the compiler is ran with `errorRecovery: true` these errors become diagnostics instead of + being thrown. + +### Patch Changes + +- Updated dependencies [[`9d3b34eef`](https://github.com/marko-js/marko/commit/9d3b34eefa2d0d9f9b27b9635950360b62be2f1f)]: + - @marko/babel-utils@6.0.0 + ## 5.28.5 ### Patch Changes diff --git a/packages/compiler/package.json b/packages/compiler/package.json index 1cf016646d..0d8e4efd53 100644 --- a/packages/compiler/package.json +++ b/packages/compiler/package.json @@ -1,7 +1,7 @@ { "name": "@marko/compiler", "description": "Marko template to JS compiler.", - "version": "5.28.5", + "version": "5.29.0", "author": "Dylan Piercey ", "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md", "dependencies": { @@ -15,7 +15,7 @@ "@babel/runtime": "^7.16.0", "@babel/traverse": "^7.16.0", "@babel/types": "^7.16.0", - "@marko/babel-utils": "^5.22.1", + "@marko/babel-utils": "^6.0.0", "complain": "^1.6.0", "he": "^1.2.0", "htmljs-parser": "^5.4.3", @@ -30,7 +30,7 @@ "strip-json-comments": "^3.1.1" }, "devDependencies": { - "@marko/translator-default": "^5.26.5" + "@marko/translator-default": "^5.27.0" }, "files": [ "dist", diff --git a/packages/marko/CHANGELOG.md b/packages/marko/CHANGELOG.md index 086938ee7b..3e5fd5a9f3 100644 --- a/packages/marko/CHANGELOG.md +++ b/packages/marko/CHANGELOG.md @@ -1,5 +1,26 @@ # Change Log +## 5.27.0 + +### Minor Changes + +- [#1980](https://github.com/marko-js/marko/pull/1980) [`9d3b34eef`](https://github.com/marko-js/marko/commit/9d3b34eefa2d0d9f9b27b9635950360b62be2f1f) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Allow parse errors to be recovered from by migrations. This adds a new ast node type of MarkoParseError. + MarkoParseError nodes can be removed during the migration stage to handle legacy syntaxes. Any MarkoParseError + left in the AST at the end of the migration phase will throw an error similar to what it would have previously + thrown synchronously. + + This also means that all parse errors can be surfaced as an aggregate error instead of bailing on the first + parse error. When the compiler is ran with `errorRecovery: true` these errors become diagnostics instead of + being thrown. + +### Patch Changes + +- [#1980](https://github.com/marko-js/marko/pull/1980) [`20deb5699`](https://github.com/marko-js/marko/commit/20deb5699c7b7393dd7ba4b95cdbb60945a9319f) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Fix issue that could happen if DOMContentLoaded was manually invoked multiple times. + +- Updated dependencies [[`9d3b34eef`](https://github.com/marko-js/marko/commit/9d3b34eefa2d0d9f9b27b9635950360b62be2f1f)]: + - @marko/translator-default@5.27.0 + - @marko/compiler@5.29.0 + ## 5.26.5 ### Patch Changes diff --git a/packages/marko/package.json b/packages/marko/package.json index c0f15d869c..abfeb274e3 100644 --- a/packages/marko/package.json +++ b/packages/marko/package.json @@ -1,11 +1,11 @@ { "name": "marko", - "version": "5.26.5", + "version": "5.27.0", "license": "MIT", "description": "UI Components + streaming, async, high performance, HTML templating for Node.js and the browser.", "dependencies": { - "@marko/compiler": "^5.28.5", - "@marko/translator-default": "^5.26.5", + "@marko/compiler": "^5.29.0", + "@marko/translator-default": "^5.27.0", "app-module-path": "^2.2.0", "argly": "^1.2.0", "browser-refresh-client": "1.1.4", diff --git a/packages/translator-default/CHANGELOG.md b/packages/translator-default/CHANGELOG.md index a78a5f63c9..7ef8c56957 100644 --- a/packages/translator-default/CHANGELOG.md +++ b/packages/translator-default/CHANGELOG.md @@ -1,5 +1,23 @@ # Change Log +## 5.27.0 + +### Minor Changes + +- [#1980](https://github.com/marko-js/marko/pull/1980) [`9d3b34eef`](https://github.com/marko-js/marko/commit/9d3b34eefa2d0d9f9b27b9635950360b62be2f1f) Thanks [@DylanPiercey](https://github.com/DylanPiercey)! - Allow parse errors to be recovered from by migrations. This adds a new ast node type of MarkoParseError. + MarkoParseError nodes can be removed during the migration stage to handle legacy syntaxes. Any MarkoParseError + left in the AST at the end of the migration phase will throw an error similar to what it would have previously + thrown synchronously. + + This also means that all parse errors can be surfaced as an aggregate error instead of bailing on the first + parse error. When the compiler is ran with `errorRecovery: true` these errors become diagnostics instead of + being thrown. + +### Patch Changes + +- Updated dependencies [[`9d3b34eef`](https://github.com/marko-js/marko/commit/9d3b34eefa2d0d9f9b27b9635950360b62be2f1f)]: + - @marko/babel-utils@6.0.0 + ## 5.26.5 ### Patch Changes diff --git a/packages/translator-default/package.json b/packages/translator-default/package.json index e2999ee4f9..1215b7256e 100644 --- a/packages/translator-default/package.json +++ b/packages/translator-default/package.json @@ -1,19 +1,19 @@ { "name": "@marko/translator-default", "description": "Translates Marko templates to the default Marko runtime.", - "version": "5.26.5", + "version": "5.27.0", "author": "Dylan Piercey ", "bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md", "dependencies": { "@babel/runtime": "^7.16.0", - "@marko/babel-utils": "^5.22.1", + "@marko/babel-utils": "^6.0.0", "escape-string-regexp": "^4.0.0", "magic-string": "^0.27.0", "self-closing-tags": "^1.0.1" }, "devDependencies": { - "@marko/compiler": "^5.28.5", - "marko": "^5.26.5" + "@marko/compiler": "^5.29.0", + "marko": "^5.27.0" }, "files": [ "dist",