Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export star as default #236

Merged
merged 2 commits into from Aug 9, 2019
Merged

Export star as default #236

merged 2 commits into from Aug 9, 2019

Conversation

tomalec
Copy link
Collaborator

@tomalec tomalec commented Aug 8, 2019

Export all as default.
Makes import foo from 'fast-json-patch' equal to import * as foo from 'fast-json-patch' for backward compatibility, after typescript update.

Fixes #233

warpech and others added 2 commits August 8, 2019 18:08
- as CommonJS (require)
- as import in Webpack
- as import in TypeScript with typings

code is backported from 3.x alpha (cec3d27)
Amended cherry-pick @1de6122774251a9688a354e2d23a09029dbefa65
@tomalec tomalec requested a review from warpech August 8, 2019 17:48
@warpech
Copy link
Collaborator

warpech commented Aug 9, 2019

LGTM. I verified it by running the tests locally in Node and in Chrome.

Also, I have cherry-picked the external API tests (18b4300) over last released versions:

As expected, these tests pass on 2.1.0 and fail on 2.2.0, which makes me convinced that this PR fixes the regression.

@warpech warpech merged commit 6f4d6d6 into master Aug 9, 2019
@warpech warpech deleted the issues/233-export-star-as-default branch August 9, 2019 08:46
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.

fast-json-patch@2.2.0 is incorrectly presenting as a transpiled ES Module
2 participants