From 4605cfba4a3f880ea3bc214142c0e0811f3c4252 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 13 Oct 2026 20:55:57 +0000 Subject: [PATCH] Version Packages --- .changeset/export-declaration-insert.md | 7 ------- CHANGELOG.md | 8 ++++++++ package.json | 2 +- 3 files changed, 9 insertions(+), 8 deletions(-) delete mode 100644 .changeset/export-declaration-insert.md diff --git a/.changeset/export-declaration-insert.md b/.changeset/export-declaration-insert.md deleted file mode 100644 index 66395920..00000000 --- a/.changeset/export-declaration-insert.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"jscodeshift": patch ---- - -Fix `insertBefore` and `insertAfter` throwing "does not match type array" when called on the declaration of an `export` statement - -Paths such as the `declaration` of `export function foo() {}` or `export interface Foo {}` are a single child of the export statement, not a list item. The new nodes are now inserted before or after the export statement itself. diff --git a/CHANGELOG.md b/CHANGELOG.md index 8846e9bc..d9fa8916 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 17.4.1 + +### Patch Changes + +- 938bc3c: Fix `insertBefore` and `insertAfter` throwing "does not match type array" when called on the declaration of an `export` statement + + Paths such as the `declaration` of `export function foo() {}` or `export interface Foo {}` are a single child of the export statement, not a list item. The new nodes are now inserted before or after the export statement itself. + ## 17.4.0 ### Minor Changes diff --git a/package.json b/package.json index de75da14..41f24ede 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jscodeshift", - "version": "17.4.0", + "version": "17.4.1", "description": "A toolkit for JavaScript codemods", "repository": { "type": "git",