acorn-import-phases is an npm module that provides a plugin to extend the Acorn JavaScript parser with support for `import defer` and `import source` syntax. It can be configured to enable or disable either syntax option.
Project status
- Maintenance status: No updates after 2025-07-14 (v1.0.4), with the latest upstream push on 2026-01-08, so the repository appears quiet rather than actively maintained as of 2026-08-12.
- Update cadence: Updates were clustered in early/mid July 2025 (v1.0.2 and v1.0.3 on 2025-07-04, then v1.0.4 on 2025-07-14). Since then, activity appears sporadic, with a long gap until the 2026-01-08 push.
AI summary generated
Recent updates
v1.0.4
v1.0.4 makes small adjustments to the acorn-import-phases parser plugin, specifically around how it calculates source locations while building AST nodes. Release notes were not provided for this version, so any behavioral impact must be inferred from the code diff.
v1.0.3
Release v1.0.3 does not provide any release notes. The only code changes in the diff are TypeScript declaration updates to the acorn-import-phases API typing, plus version bumps in package.json and package-lock.json.
Breakingv1.0.2
The v1.0.2 release notes were not provided by the publisher, so there is no documented information about what changed. Because release notes are missing, developers should review the v1.0.2 code diff and any changelog/commit history to identify potential API, behavior, or dependency changes before upgrading.
v1.0.1
Release v1.0.1 updates the package version and adjusts how the module is exported for CommonJS and TypeScript consumers. The diff shows added TypeScript declaration files and a test change indicating the export is now a plugin factory that must be invoked before being passed to acorn.Parser.extend.
Featuresv1.0.0
This release introduces a generalized Acorn plugin that supports import phase syntax for both `import defer ...` and a new `import source ...` form. The plugin API and package naming have been changed, and AST nodes now get a `phase` field for both supported phases. Release notes were not provided by the publisher, so the code changes below are not documented there.
Featuresacorn-import-defer-v1.0.2
This release (1.0.2) contains a small change to the Acorn plugin that parses the custom `import defer` syntax, plus new tests for a “multiple imports” scenario. The publisher provided no release notes, so the actual parser behavior change is only visible in the code diff.
Featuresacorn-import-defer-v1.0.1
Release acorn-import-defer v1.0.1 makes a small compatibility-focused change to the plugin implementation and adds CI coverage for both modern and older Node.js versions. No release notes were provided by the publisher.
Featuresacorn-import-defer-v1.0.0
The release notes for acorn-import-defer v1.0.0 were not provided by the publisher, so no specific changes can be verified from the release text. As a result, this release should be reviewed by comparing the tag contents (diff/changelog) before assuming compatibility or feature availability.