Skip to content

chore: support modern exports - #7

Open
darcyrush wants to merge 1 commit into
P0lip:mainfrom
darcyrush:modern-exports
Open

chore: support modern exports#7
darcyrush wants to merge 1 commit into
P0lip:mainfrom
darcyrush:modern-exports

Conversation

@darcyrush

@darcyrush darcyrush commented May 11, 2026

Copy link
Copy Markdown

This resolves #6 and supersedes #2 and #3

The current exports are arguably incorrect as hinted at in #3. You can check this yourself here;
https://arethetypeswrong.github.io/?p=jsonpath-rfc9535%401.3.0

Node 20 is EoL and Node 22+ supports "requiring ESM". TypeScript 7 will not support the already questionable "moduleResolution": "node" setting.

This PR simplifies the project to being only ESM again and reduces the bundle size by ~75% by removing src from the bundle and the CJS / ESM build step. This in turn eliminates the "dual packaging" hazard entirely.

@P0lip I'm not sure if you want to mark this as a major semver change? I am happy to update the version and the commit message if you disagree.

I will close the other PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exclude source code from published npm package

1 participant