diff --git a/templates/basic/package.json b/templates/basic/package.json index d323bd8..f89d9d0 100644 --- a/templates/basic/package.json +++ b/templates/basic/package.json @@ -43,7 +43,7 @@ "@babel/plugin-transform-export-namespace-from": "^7.24.7", "@babel/plugin-transform-modules-commonjs": "^7.24.8", "@changesets/changelog-github": "^0.5.0", - "@changesets/cli": "2.27.7", + "@changesets/cli": "^2.27.8", "@edge-runtime/vm": "^4.0.0", "@effect/build-utils": "^0.7.7", "@effect/docgen": "^0.4.4", @@ -95,7 +95,7 @@ }, "patchedDependencies": { "@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch", - "@changesets/assemble-release-plan@6.0.3": "patches/@changesets__assemble-release-plan@6.0.3.patch", + "@changesets/assemble-release-plan@6.0.4": "patches/@changesets__assemble-release-plan@6.0.4.patch", "babel-plugin-annotate-pure-calls@0.4.0": "patches/babel-plugin-annotate-pure-calls@0.4.0.patch" } } diff --git a/templates/basic/patches/@changesets__assemble-release-plan@6.0.3.patch b/templates/basic/patches/@changesets__assemble-release-plan@6.0.4.patch similarity index 84% rename from templates/basic/patches/@changesets__assemble-release-plan@6.0.3.patch rename to templates/basic/patches/@changesets__assemble-release-plan@6.0.4.patch index bc02b65..ca98526 100644 --- a/templates/basic/patches/@changesets__assemble-release-plan@6.0.3.patch +++ b/templates/basic/patches/@changesets__assemble-release-plan@6.0.4.patch @@ -1,8 +1,8 @@ diff --git a/dist/changesets-assemble-release-plan.cjs.js b/dist/changesets-assemble-release-plan.cjs.js -index 60427457c887f2d72168fecec83d79088c68e3a4..b48899c83ca2bc5bfa0cbb65e0c098d5bb65fe3d 100644 +index 4f7b5e5b37bb05874a5c1d8e583e29d4a9593ecf..980ead81554a8d925b6366e1644f3be03765398e 100644 --- a/dist/changesets-assemble-release-plan.cjs.js +++ b/dist/changesets-assemble-release-plan.cjs.js -@@ -189,7 +189,7 @@ function determineDependents({ +@@ -237,7 +237,7 @@ function determineDependents({ preInfo, onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange })) { @@ -12,10 +12,10 @@ index 60427457c887f2d72168fecec83d79088c68e3a4..b48899c83ca2bc5bfa0cbb65e0c098d5 switch (depType) { case "dependencies": diff --git a/dist/changesets-assemble-release-plan.esm.js b/dist/changesets-assemble-release-plan.esm.js -index f6583cf3f639e1fe4df764a015689dea74127236..2b9dca9f460793596394484457a94a34bcc1d99a 100644 +index a327d9e4c709a6698f505d60d8bbf0046d4bde74..eb00fec7262280fb4876165c942212abc6b25efb 100644 --- a/dist/changesets-assemble-release-plan.esm.js +++ b/dist/changesets-assemble-release-plan.esm.js -@@ -178,7 +178,7 @@ function determineDependents({ +@@ -226,7 +226,7 @@ function determineDependents({ preInfo, onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange })) { diff --git a/templates/cli/package.json b/templates/cli/package.json index ca307ed..2e43e1c 100644 --- a/templates/cli/package.json +++ b/templates/cli/package.json @@ -22,7 +22,7 @@ }, "devDependencies": { "@changesets/changelog-github": "^0.5.0", - "@changesets/cli": "2.27.7", + "@changesets/cli": "^2.27.8", "@effect/cli": "latest", "@effect/eslint-plugin": "^0.2.0", "@effect/language-service": "^0.1.0", @@ -61,7 +61,7 @@ }, "patchedDependencies": { "@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch", - "@changesets/assemble-release-plan@6.0.3": "patches/@changesets__assemble-release-plan@6.0.3.patch" + "@changesets/assemble-release-plan@6.0.4": "patches/@changesets__assemble-release-plan@6.0.4.patch" } } } diff --git a/templates/cli/patches/@changesets__assemble-release-plan@6.0.3.patch b/templates/cli/patches/@changesets__assemble-release-plan@6.0.4.patch similarity index 84% rename from templates/cli/patches/@changesets__assemble-release-plan@6.0.3.patch rename to templates/cli/patches/@changesets__assemble-release-plan@6.0.4.patch index bc02b65..ca98526 100644 --- a/templates/cli/patches/@changesets__assemble-release-plan@6.0.3.patch +++ b/templates/cli/patches/@changesets__assemble-release-plan@6.0.4.patch @@ -1,8 +1,8 @@ diff --git a/dist/changesets-assemble-release-plan.cjs.js b/dist/changesets-assemble-release-plan.cjs.js -index 60427457c887f2d72168fecec83d79088c68e3a4..b48899c83ca2bc5bfa0cbb65e0c098d5bb65fe3d 100644 +index 4f7b5e5b37bb05874a5c1d8e583e29d4a9593ecf..980ead81554a8d925b6366e1644f3be03765398e 100644 --- a/dist/changesets-assemble-release-plan.cjs.js +++ b/dist/changesets-assemble-release-plan.cjs.js -@@ -189,7 +189,7 @@ function determineDependents({ +@@ -237,7 +237,7 @@ function determineDependents({ preInfo, onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange })) { @@ -12,10 +12,10 @@ index 60427457c887f2d72168fecec83d79088c68e3a4..b48899c83ca2bc5bfa0cbb65e0c098d5 switch (depType) { case "dependencies": diff --git a/dist/changesets-assemble-release-plan.esm.js b/dist/changesets-assemble-release-plan.esm.js -index f6583cf3f639e1fe4df764a015689dea74127236..2b9dca9f460793596394484457a94a34bcc1d99a 100644 +index a327d9e4c709a6698f505d60d8bbf0046d4bde74..eb00fec7262280fb4876165c942212abc6b25efb 100644 --- a/dist/changesets-assemble-release-plan.esm.js +++ b/dist/changesets-assemble-release-plan.esm.js -@@ -178,7 +178,7 @@ function determineDependents({ +@@ -226,7 +226,7 @@ function determineDependents({ preInfo, onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange })) { diff --git a/templates/cli/patches/babel-plugin-annotate-pure-calls@0.4.0.patch b/templates/cli/patches/babel-plugin-annotate-pure-calls@0.4.0.patch new file mode 100644 index 0000000..6659c82 --- /dev/null +++ b/templates/cli/patches/babel-plugin-annotate-pure-calls@0.4.0.patch @@ -0,0 +1,13 @@ +diff --git a/lib/index.js b/lib/index.js +index 2182884e21874ebb37261e2375eec08ad956fc9a..ef5630199121c2830756e00c7cc48cf1078c8207 100644 +--- a/lib/index.js ++++ b/lib/index.js +@@ -78,7 +78,7 @@ const isInAssignmentContext = path => { + + parentPath = _ref.parentPath; + +- if (parentPath.isVariableDeclaration() || parentPath.isAssignmentExpression()) { ++ if (parentPath.isVariableDeclaration() || parentPath.isAssignmentExpression() || parentPath.isClassDeclaration()) { + return true; + } + } while (parentPath !== statement); diff --git a/templates/monorepo/package.json b/templates/monorepo/package.json index e6a0a74..5962c86 100644 --- a/templates/monorepo/package.json +++ b/templates/monorepo/package.json @@ -37,7 +37,7 @@ "@babel/plugin-transform-export-namespace-from": "^7.24.7", "@babel/plugin-transform-modules-commonjs": "^7.24.8", "@changesets/changelog-github": "^0.5.0", - "@changesets/cli": "2.27.7", + "@changesets/cli": "^2.27.8", "@edge-runtime/vm": "^4.0.0", "@effect/build-utils": "^0.7.7", "@effect/eslint-plugin": "^0.2.0", @@ -75,7 +75,7 @@ }, "patchedDependencies": { "@changesets/get-github-info@0.6.0": "patches/@changesets__get-github-info@0.6.0.patch", - "@changesets/assemble-release-plan@6.0.3": "patches/@changesets__assemble-release-plan@6.0.3.patch", + "@changesets/assemble-release-plan@6.0.4": "patches/@changesets__assemble-release-plan@6.0.4.patch", "babel-plugin-annotate-pure-calls@0.4.0": "patches/babel-plugin-annotate-pure-calls@0.4.0.patch" } } diff --git a/templates/monorepo/patches/@changesets__assemble-release-plan@6.0.3.patch b/templates/monorepo/patches/@changesets__assemble-release-plan@6.0.4.patch similarity index 84% rename from templates/monorepo/patches/@changesets__assemble-release-plan@6.0.3.patch rename to templates/monorepo/patches/@changesets__assemble-release-plan@6.0.4.patch index bc02b65..ca98526 100644 --- a/templates/monorepo/patches/@changesets__assemble-release-plan@6.0.3.patch +++ b/templates/monorepo/patches/@changesets__assemble-release-plan@6.0.4.patch @@ -1,8 +1,8 @@ diff --git a/dist/changesets-assemble-release-plan.cjs.js b/dist/changesets-assemble-release-plan.cjs.js -index 60427457c887f2d72168fecec83d79088c68e3a4..b48899c83ca2bc5bfa0cbb65e0c098d5bb65fe3d 100644 +index 4f7b5e5b37bb05874a5c1d8e583e29d4a9593ecf..980ead81554a8d925b6366e1644f3be03765398e 100644 --- a/dist/changesets-assemble-release-plan.cjs.js +++ b/dist/changesets-assemble-release-plan.cjs.js -@@ -189,7 +189,7 @@ function determineDependents({ +@@ -237,7 +237,7 @@ function determineDependents({ preInfo, onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange })) { @@ -12,10 +12,10 @@ index 60427457c887f2d72168fecec83d79088c68e3a4..b48899c83ca2bc5bfa0cbb65e0c098d5 switch (depType) { case "dependencies": diff --git a/dist/changesets-assemble-release-plan.esm.js b/dist/changesets-assemble-release-plan.esm.js -index f6583cf3f639e1fe4df764a015689dea74127236..2b9dca9f460793596394484457a94a34bcc1d99a 100644 +index a327d9e4c709a6698f505d60d8bbf0046d4bde74..eb00fec7262280fb4876165c942212abc6b25efb 100644 --- a/dist/changesets-assemble-release-plan.esm.js +++ b/dist/changesets-assemble-release-plan.esm.js -@@ -178,7 +178,7 @@ function determineDependents({ +@@ -226,7 +226,7 @@ function determineDependents({ preInfo, onlyUpdatePeerDependentsWhenOutOfRange: config.___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH.onlyUpdatePeerDependentsWhenOutOfRange })) {