Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/export-declaration-insert.md

This file was deleted.

8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jscodeshift",
"version": "17.4.0",
"version": "17.4.1",
"description": "A toolkit for JavaScript codemods",
"repository": {
"type": "git",
Expand Down
Loading