Skip to content

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 29, 2024

This PR contains the following updates:

Package Update Change
node (source) major 20 -> 22
node (source) major 20.18 -> 22.11

Release Notes

nodejs/node (node)

v22.11.0

Compare Source

v22.10.0: 2024-10-16, Version 22.10.0 (Current), @​aduh95

Compare Source

Notable Changes
New "module-sync" exports condition

This release introduces a "module-sync" exports condition that's enabled when
require(esm) is enabled, so packages can supply a synchronous ES module to the
Node.js module loader, no matter if it's being required or imported. This is
similar to the "module" condition that bundlers have been using to support
require(esm) in Node.js, and allows dual-package authors to opt into ESM-first
only on newer versions of Node.js that supports require(esm) to avoid the
dual-package hazard.

{
  "type": "module",
  "exports": {
    "node": {
      // On new version of Node.js, both require() and import get
      // the ESM version
      "module-sync": "./index.js",
      // On older version of Node.js, where "module-sync" and require(esm) are
      // not supported, use the CJS version to avoid dual-package hazard.
      // When package authors think it's time to drop support for older versions of
      // Node.js, they can remove the exports conditions and just use "main": "index.js".
      "default": "./dist/index.cjs"
    },
    // On any other environment, use the ESM version.
    "default": "./index.js"
  }
}

Or if the package is only meant to be run on Node.js and wants to fallback to
CJS on older versions that don't have require(esm):

{
  "type": "module",
  "exports": {
    // On new version of Node.js, both require() and import get the ESM version
    "module-sync": "./index.js",
    // On older version of Node.js, where "module-sync" and require(esm) are
    // not supported, use the CJS version to avoid dual-package hazard.
    // When package authors think it's time to drop support for older versions of
    // Node.js, they can remove the exports conditions and just use "main": "index.js".
    "default": "./dist/index.cjs"
  }
}

For package authors: this only serves as a feature-detection mechanism for
packages that wish to support both CJS and ESM users during the period when some
active Node.js LTS versions support require(esm) while some older ones don't.
When all active Node.js LTS lines support require(esm), packages can simplify
their distributions by bumping the major version, dropping their CJS exports,
and removing the module-sync exports condition (with only main or default
targetting the ESM exports). If the package needs to support both bundlers and
being run unbundled on Node.js during the transition period, use both
module-sync and module and point them to the same ESM file. If the package
already doesn't want to support older versions of Node.js that doesn't support
require(esm), don't use this export condition.

For bundlers/tools: they should avoid implementing this stop-gap condition.
Most existing bundlers implement the de-facto bundler standard
module
exports condition, and that should be enough to support users who want to bundle
ESM from CJS consumers. Users who want both bundlers and Node.js to recognize
the ESM exports can use both module/module-sync conditions during the
transition period, and can drop module-sync+module when they no longer need
to support older versions of Node.js. If tools do want to support this
condition, it's recommended to make the resolution rules in the graph pointed by
this condition match the Node.js native ESM rules to avoid divergence.

We ended up implementing a condition with a different name instead of reusing
"module", because existing code in the ecosystem using the "module"
condition sometimes also expect the module resolution for these ESM files to
work in CJS style, which is supported by bundlers, but the native Node.js loader
has intentionally made ESM resolution different from CJS resolution (e.g.
forbidding import './noext' or import './directory'), so it would be
breaking to implement a "module" condition without implementing the forbidden
ESM resolution rules. For now, this just implements a new condition as
semver-minor so it can be backported to older LTS.

Contributed by Joyee Cheung in #​54648.

node --run is now stable

This CLI flag runs a specified command from a package.json's "scripts" object.

For the following package.json:

{
  "scripts": {
    "test": "node --test-reporter junit --test ./test"
  }
}

You can run node --run test and that would start the test suite.

Contributed by Yagiz Nizipli in #​53763.

Other notable changes
  • [f0b441230a] - (SEMVER-MINOR) crypto: add KeyObject.prototype.toCryptoKey (Filip Skokan) #​55262
  • [349d2ed07b] - (SEMVER-MINOR) crypto: add Date fields for validTo and validFrom (Andrew Moon) #​54159
  • [bebc95ed58] - doc: add abmusse to collaborators (Abdirahim Musse) #​55086
  • [914db60159] - (SEMVER-MINOR) http2: expose nghttp2_option_set_stream_reset_rate_limit as an option (Maël Nison) #​54875
  • [f7c3b03759] - (SEMVER-MINOR) lib: propagate aborted state to dependent signals before firing events (jazelly) #​54826
  • [32261fc98a] - (SEMVER-MINOR) module: support loading entrypoint as url (RedYetiDev) #​54933
  • [06957ff355] - (SEMVER-MINOR) module: implement flushCompileCache() (Joyee Cheung) #​54971
  • [2dcf70c347] - (SEMVER-MINOR) module: throw when invalid argument is passed to enableCompileCache() (Joyee Cheung) #​54971
  • [f9b19d7c44] - (SEMVER-MINOR) module: write compile cache to temporary file and then rename it (Joyee Cheung) #​54971
  • [e95163b170] - (SEMVER-MINOR) process: add process.features.require_module (Joyee Cheung) #​55241
  • [4050f68e5d] - (SEMVER-MINOR) process: add process.features.typescript (Aviv Keller) #​54295
  • [86f7cb802d] - (SEMVER-MINOR) test_runner: support custom arguments in run() (Aviv Keller) #​55126
  • [b62f2f8259] - (SEMVER-MINOR) test_runner: add 'test:summary' event (Colin Ihrig) #​54851
  • [d7c708aec5] - (SEMVER-MINOR) test_runner: add support for coverage via run() (Chemi Atlow) #​53937
  • [5fda4a1498] - (SEMVER-MINOR) worker: add markAsUncloneable api (Jason Zhang) #​55234
Commits

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 becomes conflicted, or you tick the rebase/retry checkbox.

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


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 29, 2024
@renchap renchap added this pull request to the merge queue Oct 31, 2024
Merged via the queue into main with commit 516c97a Oct 31, 2024
38 checks passed
@renchap renchap deleted the renovate/node-22.x branch October 31, 2024 10:50
rezhajulio added a commit to PegelinuxTop/mastodon that referenced this pull request Nov 10, 2024
* Use `likes` and `shares` totalItems on status creations and updates (mastodon#32620)

* Enhance coverage for `StatusPin` model (mastodon#32515)

* Update rails to version 7.1.4.2 (mastodon#32670)

* Update dependency react-select to v5.8.2 (mastodon#32661)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update DefinitelyTyped types (non-major) (mastodon#32674)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency @formatjs/cli to v6.3.5 (mastodon#32675)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* New Crowdin Translations (automated) (mastodon#32589)

Co-authored-by: GitHub Actions <noreply@github.com>

* Feat: Implement interaction modal for Polls (mastodon#32609)

* Fix and improve batch attachment deletion handling when using OpenStack Swift (mastodon#32637)

* Mailer header partial access cleanup (mastodon#32585)

* Update babel monorepo to v7.26.0 (mastodon#32659)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Misc gem version bumps (mastodon#32684)

* Use nil for timestamp column in admin/confirmations spec (mastodon#32682)

* Add test coverage for POST /api/v2/media's max description length (mastodon#32683)

* New Crowdin Translations (automated) (mastodon#32687)

Co-authored-by: GitHub Actions <noreply@github.com>

* Add telemetry for status / bio formatting (mastodon#32677)

* Update dependency fog-core to '<= 2.6.0' (mastodon#32660)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Embed modal mobile fix (mastodon#32641)

* Add `DomainHelpers` spec support module for DNS/MX stub (mastodon#32690)

* Add coverage for `StatusTrend` and `PreviewCardTrend` models, add `locales` class method to `RankedTrend` (mastodon#32688)

* Fix preview cards with long titles erroneously causing layout changes (mastodon#32678)

* Update dependency libvips to v8.16.0 (mastodon#32679)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update workbox monorepo to v7.3.0 (mastodon#32691)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* New Crowdin Translations (automated) (mastodon#32695)

Co-authored-by: GitHub Actions <noreply@github.com>

* Add userinfo oauth endpoint (mastodon#32548)

* Fix 'unknown' media attachment rendering in detailed view (mastodon#32713)

* Fix IDs not being serialized as strings in annual reports API (mastodon#32710)

* New Crowdin Translations (automated) (mastodon#32708)

Co-authored-by: GitHub Actions <noreply@github.com>

* Update dependency strong_migrations to v2.0.2 (mastodon#32705)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency selenium-webdriver to v4.26.0 (mastodon#32698)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency core-js to v3.39.0 (mastodon#32707)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Update dependency node to v22 (mastodon#32689)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>

* Migrate from the deprecated `azure-storage-blob` to `azure-blob` (mastodon#32080)

Co-authored-by: Renaud Chaput <renchap@gmail.com>

* Add model spec for `Tombstone` (mastodon#32697)

* Drop support for ruby 3.1 (mastodon#32363)

* Update `rails-i18n` to version 7.0.10 (mastodon#32719)

* Update `zeitwerk` to version 2.7.1 (mastodon#32723)

* [Glitch] Feat: Implement interaction modal for Polls

Port dc0b194 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>

* [Glitch] Embed modal mobile fix

Port de1d8dc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>

* [Glitch] Fix preview cards with long titles erroneously causing layout changes

Port 742eb54 to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>

* [Glitch] Fix 'unknown' media attachment rendering in detailed view

Port 01e25af to glitch-soc

Signed-off-by: Claire <claire.github-309c@sitedethib.com>

* Fix ruby linting issue

---------

Signed-off-by: Claire <claire.github-309c@sitedethib.com>
Co-authored-by: Jonny Saunders <sneakers-the-rat@protonmail.com>
Co-authored-by: Matt Jankowski <matt@jankowski.online>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: GitHub Actions <noreply@github.com>
Co-authored-by: Emelia Smith <ThisIsMissEm@users.noreply.github.com>
Co-authored-by: Hugo Gameiro <email@hugogameiro.com>
Co-authored-by: David Roetzel <david@roetzel.de>
Co-authored-by: Nathan Sparrow <24910097+DismalShadowX@users.noreply.github.com>
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
Co-authored-by: Renato "Lond" Cerqueira <renato@lond.com.br>
Co-authored-by: Eugen Rochko <eugen@zeonfederated.com>
Co-authored-by: Joé Dupuis <1518299+JoeDupuis@users.noreply.github.com>
Co-authored-by: Renaud Chaput <renchap@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant