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

feat!: make SuperJSON esm-only #263

Merged
merged 5 commits into from
Oct 11, 2023
Merged

feat!: make SuperJSON esm-only #263

merged 5 commits into from
Oct 11, 2023

Conversation

Skn0tt
Copy link
Member

@Skn0tt Skn0tt commented Oct 11, 2023

Closes #260.

This PR makes SuperJSON an esm-only module. ESM is supported in all actively-supported versions of Node.js, so it's fine to make the switch.

The changes i've made are based on this guide by Axel Rauschmayer: https://2ality.com/2021/06/typescript-esm-nodejs.html.

In the process, I'm also changing the supported Node.js versions to >= 16, because Node.js v14 reached EOL earlier this year.

@Skn0tt Skn0tt self-assigned this Oct 11, 2023
@Skn0tt
Copy link
Member Author

Skn0tt commented Oct 11, 2023

I was intending to publish a prerelease with 04f078e, but apparently NPM took it as latest 😅

Well, let's get this published as v2!

@Skn0tt Skn0tt merged commit f574bb2 into main Oct 11, 2023
3 checks passed
@Skn0tt Skn0tt deleted the make-esm branch October 11, 2023 08:42
kodiakhq bot added a commit to weareinreach/TransMascFutures that referenced this pull request Oct 11, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [superjson](https://togithub.com/blitz-js/superjson) | [`1.13.3` -> `2.0.0`](https://renovatebot.com/diffs/npm/superjson/1.13.3/2.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/superjson/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/superjson/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/superjson/1.13.3/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/superjson/1.13.3/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>blitz-js/superjson (superjson)</summary>

### [`v2.0.0`](https://togithub.com/blitz-js/superjson/releases/tag/v2.0.0)

[Compare Source](https://togithub.com/blitz-js/superjson/compare/v1.13.3...v2.0.0)

#### What's Changed

Breaking Change: SuperJSON is now published as an ES Module, and only supports Node.js v16 and later.

-   Update logo and README.md by [@&#8203;agreea](https://togithub.com/agreea) in [blitz-js/superjson#258
-   Tweak Banner Image by [@&#8203;agreea](https://togithub.com/agreea) in [blitz-js/superjson#261
-   fix: fix typo in banner filename by [@&#8203;colinhacks](https://togithub.com/colinhacks) in [blitz-js/superjson#262
-   feat!: make SuperJSON esm-only by [@&#8203;Skn0tt](https://togithub.com/Skn0tt) in [blitz-js/superjson#263

#### New Contributors

-   [@&#8203;agreea](https://togithub.com/agreea) made their first contribution in [blitz-js/superjson#258
-   [@&#8203;colinhacks](https://togithub.com/colinhacks) made their first contribution in [blitz-js/superjson#262

**Full Changelog**: blitz-js/superjson@v1.13.3...v2.0.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/weareinreach/GLAAD).



PR-URL: #209
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
saud-alnasser pushed a commit to saud-alnasser/cachescribe that referenced this pull request Oct 12, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [superjson](https://togithub.com/blitz-js/superjson) | [`^1.13.1` -> `^2.0.0`](https://renovatebot.com/diffs/npm/superjson/1.13.1/2.0.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/superjson/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/superjson/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/superjson/1.13.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/superjson/1.13.1/2.0.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>blitz-js/superjson (superjson)</summary>

### [`v2.0.0`](https://togithub.com/blitz-js/superjson/releases/tag/v2.0.0)

[Compare Source](https://togithub.com/blitz-js/superjson/compare/v1.13.3...v2.0.0)

##### What's Changed

Breaking Change: SuperJSON is now published as an ES Module, and only supports Node.js v16 and later.

-   Update logo and README.md by [@&#8203;agreea](https://togithub.com/agreea) in [blitz-js/superjson#258
-   Tweak Banner Image by [@&#8203;agreea](https://togithub.com/agreea) in [blitz-js/superjson#261
-   fix: fix typo in banner filename by [@&#8203;colinhacks](https://togithub.com/colinhacks) in [blitz-js/superjson#262
-   feat!: make SuperJSON esm-only by [@&#8203;Skn0tt](https://togithub.com/Skn0tt) in [blitz-js/superjson#263

##### New Contributors

-   [@&#8203;agreea](https://togithub.com/agreea) made their first contribution in [blitz-js/superjson#258
-   [@&#8203;colinhacks](https://togithub.com/colinhacks) made their first contribution in [blitz-js/superjson#262

**Full Changelog**: blitz-js/superjson@v1.13.3...v2.0.0

### [`v1.13.3`](https://togithub.com/blitz-js/superjson/releases/tag/v1.13.3)

[Compare Source](https://togithub.com/blitz-js/superjson/compare/v1.13.2...v1.13.3)

#### What's Changed

-   fix a bug with dedupe=true and rereferential
    equalities. Report by [@&#8203;KATT](https://togithub.com/KATT), thank you! [#&#8203;253](https://togithub.com/blitz-js/superjson/issues/253)

**Full Changelog**: blitz-js/superjson@v1.13.1...v1.13.3

### [`v1.13.2`](https://togithub.com/blitz-js/superjson/releases/tag/v1.13.2)

[Compare Source](https://togithub.com/blitz-js/superjson/compare/v1.13.1...v1.13.2)

This was an accidental release. Oops, sorry! No changes
to the prior version.

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "before 4am" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/saud-alnasser/cachescribe).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy44LjEiLCJ1cGRhdGVkSW5WZXIiOiIzNy44LjEiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->
pSnehanshu added a commit to pSnehanshu/zigbolt that referenced this pull request Nov 13, 2023
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.

ESM entrypoint isn't functional
1 participant