Skip to content
New issue

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

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

Already on GitHub? # to your account

💥 (breaking) node 20, esm, semantic-release@23 [b] #1144

Merged
merged 31 commits into from
Jan 21, 2024
Merged

Conversation

JeromeFitz
Copy link
Owner

@JeromeFitz JeromeFitz commented Jan 19, 2024

Node 20 & ESM

  • Drop support for anything below Node 20
  • Drop support for CommonJS wherever possible

Node 20 Steps

  • node
    • @types/node@20.11.5
    • tsup@8.0.1
    • turbo@1.11.3
    • typescript@5.3.3

ESM Update

A lot of .js and adding node20.json for tsconfig

  • turbo updates
  • release.config.js

Semantic Release 23

  • semantic-release@23.0.0
  • semantic-release-monorepo@8.0.0
  • conventional-commits-filter@4.0.0
  • conventional-commits-parser@5.0.0
  • @semantic-release/commit-analyzer@11.1.0
  • @semantic-release/github@9.2.6
  • @semantic-release/npm@11.0.2
  • @semantic-release/release-notes-generator@12.1.0

Other Packages Upgraded With:

  • dotenv@16.3.2
  • semver@7.5.4
  • read-package-up@11.0.0

More Package Upgrades

  • @babel/eslint-parser
  • @types/is-ci
  • @typescript-eslint/eslint-plugin
  • @typescript-eslint/parser
  • eslint
  • eslint-config-next
  • eslint-config-prettier
  • eslint-config-turbo
  • eslint-plugin-import
  • eslint-plugin-jest
  • eslint-plugin-jest-dom
  • eslint-plugin-jsx-a11y
  • eslint-plugin-playwright
  • eslint-plugin-react
  • eslint-plugin-storybook
  • eslint-plugin-tailwindcss
  • eslint-plugin-testing-library
  • eslint-plugin-turbo
  • eslint-plugin-typescript-sort-keys
  • gitmojis@3.14.0
  • lint-staged
  • prettier
  • prettier-plugin-pkg
  • prettier-plugin-tailwindcss
  • syncpack

Remove ?:

  • @semantic-release/exec
  • semantic-release-commit-filter this is needed from a peer dep

pnpm

Temporarily drop support for and look to deprecate where possible:

  • @jeromefitz/design-system => Moving back to Tailwind elsewhere
  • Same with example
  • @jeromefitz/git-cz => Long enough, prune code.

@JeromeFitz JeromeFitz changed the title 💥 (breaking) node 20, semantic-release@23, ... 💥 (breaking) node 20, esm only, semantic-release@23, ... Jan 19, 2024
@JeromeFitz JeromeFitz added the kodiak: merge.method = 'merge' Kodiak: Merge (Override) label Jan 19, 2024
@JeromeFitz
Copy link
Owner Author

Have to do some localized testing, but should be merging this by end of weekend. 🎉

@JeromeFitz JeromeFitz changed the title 💥 (breaking) node 20, esm only, semantic-release@23, ... 💥 (breaking) node 20, esm, semantic-release@23 [b] Jan 21, 2024
@JeromeFitz JeromeFitz added the 🥳️ LGTM Automerge: Let's Get This Merged label Jan 21, 2024
@kodiakhq kodiakhq bot merged commit 0c3ea1b into main Jan 21, 2024
1 check passed
@kodiakhq kodiakhq bot deleted the refactor/canary branch January 21, 2024 19:43
kodiakhq bot added a commit to JeromeFitz/websites that referenced this pull request Jan 21, 2024
## Packages

### Upgrades

- `@jeromefitz/*` canary builds from: JeromeFitz/packages#1144
- `semantic-release@23`
- `prettier@3`
- `octokit/core`
- `date-fns`
- `upstash/redis`
- `react-use`
- `zustand`


### Removals

- [x] `@radix-ui/*` internals

## Next + ESM

Well ... this was a journey. Wanted to see about moving the following packages to be their own externals (module, esm, etc.):

- `@jeromefitz/design-system`
- `@jeromefitz/shared`
- `next-notion`

But ... then `next` in the current configuration _cannot_ import and keeps thinking everything is a `client` component on the `server`. This without an example I know is not helpful, but will try again on this to move to module stuff later.

What this does is preps for that -- and also removes it, heh.

But then focuses on `next` transpiling (sic) the worskpaces not importing them as an external.

Changes to `postcss.config.cjs` 

C'est la vie.

## Breaking

Is the fact everything is kind of re-written but also not ... but this is a more proper move to Node 20
- This detaches `jerandky` for the moment as well
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
kodiak: merge.method = 'merge' Kodiak: Merge (Override) 🥳️ LGTM Automerge: Let's Get This Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant