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

refactor!: use named destr export #69

Merged
merged 2 commits into from
Jun 12, 2023
Merged

refactor!: use named destr export #69

merged 2 commits into from
Jun 12, 2023

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jun 12, 2023

This PR changes default export of destr to named export:

-- import destr from 'destr'
++ import { destr } from 'destr'

-- const destr = require('destr')
++ const { destr } = require('destr')

The implementation uses backward compatible CJS reexports so usually there shouldn't be breaking changes but still will be only applied in destr v2.

This change is necessary to introduce more named exports without future conflicts.

@pi0 pi0 merged commit 50a8b95 into main Jun 12, 2023
@pi0 pi0 deleted the refactor/named-export branch June 12, 2023 11:49
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.

1 participant