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

chore(deps): update node.js to v22 #278

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 23, 2024

This PR contains the following updates:

Package Type Update Change
node (source) engines major 16 -> 22.12.0

Release Notes

nodejs/node (node)

v22.12.0

Compare Source

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 - "after 6am and before 10am on monday" (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.


  • 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 the dependencies Pull requests that update a dependency file label Dec 23, 2024
Copy link
Contributor

Images automagically compressed by Calibre's image-actions

Compression reduced images by 69.2%, saving 13.21 MB.

Filename Before After Improvement Visual comparison
template/public/img/uploads/2.png 53.15 KB 34.78 KB -34.6% View diff
template/public/img/uploads/5s9suprcwz3.png 7.42 KB 4.87 KB -34.4% View diff
template/public/img/uploads/amex-.png 795 bytes 560 bytes -29.6% View diff
template/public/img/uploads/b2c-banner_desk-blac_november.webp 383.08 KB 64.21 KB -83.2% View diff
template/public/img/uploads/b2c-banner_mobile-blac_november.webp 102.61 KB 22.28 KB -78.3% View diff
template/public/img/uploads/banner_combos-1500x200px-1-.webp 86.57 KB 23.81 KB -72.5% View diff
template/public/img/uploads/banner_principal_mobile-576x834px_1-1-.webp 112.23 KB 34.06 KB -69.7% View diff
template/public/img/uploads/banner_principal_mobile-576x834px-duo.webp 76.20 KB 30.35 KB -60.2% View diff
template/public/img/uploads/banner_principal-1920x480px.webp 129.22 KB 40.11 KB -69.0% View diff
template/public/img/uploads/banner-desk-02.jpg 368.17 KB 99.07 KB -73.1% View diff
template/public/img/uploads/banner-desk-gradiente-2-1-.webp 525.40 KB 75.16 KB -85.7% View diff
template/public/img/uploads/banner-mes-do-consumidor-deskmobi-6-.jpg 460.53 KB 117.75 KB -74.4% View diff
template/public/img/uploads/banner-mes-do-consumidor-mobilecherrymobi.png 201.13 KB 192.96 KB -4.1% View diff
template/public/img/uploads/banner-mes-do-consumidor-mobilemobi-1-.png 188.59 KB 180.85 KB -4.1% View diff
template/public/img/uploads/banner-mobi-mobile.jpg 129.68 KB 51.77 KB -60.1% View diff
template/public/img/uploads/banner-mobi.jpg 120.24 KB 49.40 KB -58.9% View diff
template/public/img/uploads/banner-mobile-02jpg.jpg 444.57 KB 118.25 KB -73.4% View diff
template/public/img/uploads/banner-mobile-gradiente-2-1-.webp 182.91 KB 31.53 KB -82.8% View diff
template/public/img/uploads/banner-promo-3-mobi-desk.webp 120.65 KB 55.68 KB -53.8% View diff
template/public/img/uploads/banner-promo-3-mobi-mobi.webp 80.81 KB 36.95 KB -54.3% View diff
template/public/img/uploads/bannermobghostmarblemobile.png 179.33 KB 170.90 KB -4.7% View diff
template/public/img/uploads/bannermod_ghost_marbledesk.png 182.85 KB 171.92 KB -6.0% View diff
template/public/img/uploads/banners-home-mobifans_v-copy-6.webp 234.29 KB 94.39 KB -59.7% View diff
template/public/img/uploads/banners-home-mobifans_v-copy-7.webp 224.98 KB 83.61 KB -62.8% View diff
template/public/img/uploads/banners-home-mobifans_v-copy-8.webp 283.44 KB 80.49 KB -71.6% View diff
template/public/img/uploads/banners-home-mobifans-01.webp 809.27 KB 163.33 KB -79.8% View diff
template/public/img/uploads/banners-home-mobifans-03.webp 679.63 KB 139.45 KB -79.5% View diff
template/public/img/uploads/banners-home-mobifans-04.webp 798.46 KB 151.35 KB -81.0% View diff
template/public/img/uploads/boleto-.png 530 bytes 385 bytes -27.4% View diff
template/public/img/uploads/captura-de-tela-2022-11-17-102611.png 11.10 KB 8.57 KB -22.8% View diff
template/public/img/uploads/desk-banner-mobi_magsafe-copiar.webp 137.81 KB 53.01 KB -61.5% View diff
template/public/img/uploads/desk-banner-mobi_magsafe-gradiente-copiar-1-.webp 74.21 KB 54.72 KB -26.3% View diff
template/public/img/uploads/desk-banner-mobi_silicone-reciclado-copiar.webp 167.59 KB 60.04 KB -64.2% View diff
template/public/img/uploads/desk-banner-mobi-2x-04.webp 295.50 KB 85.18 KB -71.2% View diff
template/public/img/uploads/desk-banner-mobi-copiar.webp 146.02 KB 51.41 KB -64.8% View diff
template/public/img/uploads/desk-banner-mobilecherrymobi.png 183.73 KB 174.65 KB -4.9% View diff
template/public/img/uploads/desk-bannerspromo-mobi-1_4.webp 85.83 KB 32.96 KB -61.6% View diff
template/public/img/uploads/desk-mobi-promo-ajustado-2x-.webp 287.90 KB 103.92 KB -63.9% View diff
template/public/img/uploads/desk-promo-2-150.webp 67.00 KB 38.26 KB -42.9% View diff
template/public/img/uploads/desk.png 33.99 KB 23.25 KB -31.6% View diff
template/public/img/uploads/elo-.png 743 bytes 535 bytes -28.0% View diff
template/public/img/uploads/favicon.png 707 bytes 434 bytes -38.6% View diff
template/public/img/uploads/godaddystudiopage-0-22-.png 29.03 KB 19.25 KB -33.7% View diff
template/public/img/uploads/godaddystudiopage-0-23-.png 70.29 KB 47.12 KB -33.0% View diff
template/public/img/uploads/google-selo-1-.webp 4.38 KB 1.79 KB -59.1% View diff
template/public/img/uploads/google-selo.webp 16.07 KB 11.84 KB -26.3% View diff
template/public/img/uploads/hiper-.png 661 bytes 468 bytes -29.2% View diff
template/public/img/uploads/icone_branco_norton.webp 26.71 KB 13.85 KB -48.1% View diff
template/public/img/uploads/icone_branco_sitesegurogoogle_2.webp 25.95 KB 13.27 KB -48.9% View diff
template/public/img/uploads/icone_branco_ssl.webp 22.94 KB 9.73 KB -57.6% View diff
template/public/img/uploads/inserir-um-titulo-1-.png 60.37 KB 39.61 KB -34.4% View diff
template/public/img/uploads/inserir-um-titulo-868-210-px-.png 64.20 KB 39.47 KB -38.5% View diff
template/public/img/uploads/inserir-um-titulo.png 60.64 KB 39.69 KB -34.5% View diff
template/public/img/uploads/kits-exclusivos-1-.png 19.15 KB 15.33 KB -20.0% View diff
template/public/img/uploads/kits-exclusivos.png 18.89 KB 15.54 KB -17.7% View diff
template/public/img/uploads/logo-mobi-icon.webp 1.87 KB 1.41 KB -24.3% View diff
template/public/img/uploads/logo.webp 21.24 KB 3.46 KB -83.7% View diff
template/public/img/uploads/master-.png 798 bytes 540 bytes -32.3% View diff
template/public/img/uploads/mercado-pago-.png 919 bytes 642 bytes -30.1% View diff
template/public/img/uploads/mobi_banner_air-mobile_1.webp 133.21 KB 26.82 KB -79.9% View diff
template/public/img/uploads/mobi_banner_air-mobile.webp 344.72 KB 55.02 KB -84.0% View diff
template/public/img/uploads/mobi_banner_deep-desk.webp 608.46 KB 90.63 KB -85.1% View diff
template/public/img/uploads/mobi_banner_deep-mobile.webp 218.71 KB 32.46 KB -85.2% View diff
template/public/img/uploads/mobi_banner_space-desk.webp 702.85 KB 85.31 KB -87.9% View diff
template/public/img/uploads/mobi_banner_space-mobile.webp 241.66 KB 34.64 KB -85.7% View diff
template/public/img/uploads/mobi-banner_desk-blac_week.webp 189.07 KB 59.06 KB -68.8% View diff
template/public/img/uploads/mobi-banner_desk-black_november.webp 189.03 KB 58.82 KB -68.9% View diff
template/public/img/uploads/mobi-banner_mobile-blac_week.webp 41.88 KB 21.33 KB -49.1% View diff
template/public/img/uploads/mobi-banner_mobile-black_november.webp 41.81 KB 21.03 KB -49.7% View diff
template/public/img/uploads/mobi-banner-1.jpg 199.62 KB 44.28 KB -77.8% View diff
template/public/img/uploads/mobi-banner-2.jpg 195.87 KB 49.22 KB -74.9% View diff
template/public/img/uploads/mobi-banner-3.jpg 190.74 KB 42.23 KB -77.9% View diff
template/public/img/uploads/mobi-banner-4.jpg 241.50 KB 62.41 KB -74.2% View diff
template/public/img/uploads/mobi-banner-desk-antiblue-1.jpg 493.02 KB 70.22 KB -85.8% View diff
template/public/img/uploads/mobi-banner-desk-institucional-3.jpg 517.81 KB 103.60 KB -80.0% View diff
template/public/img/uploads/mobi-banner-desk-natal-1.jpg 216.23 KB 42.74 KB -80.2% View diff
template/public/img/uploads/mobi-banner-desk-natal-2.jpg 264.89 KB 62.31 KB -76.5% View diff
template/public/img/uploads/mobi-banner-iphone16-desk.webp 169.36 KB 50.96 KB -69.9% View diff
template/public/img/uploads/mobi-banner-iphone16-mobile.webp 88.40 KB 30.47 KB -65.5% View diff
template/public/img/uploads/mobi-banner-mobile-antiblue-1.jpg 882.46 KB 135.63 KB -84.6% View diff
template/public/img/uploads/mobi-banner-mobile-natal-1.jpg 329.70 KB 63.47 KB -80.7% View diff
template/public/img/uploads/mobi-banner-mobile-natal-2.jpg 389.64 KB 83.85 KB -78.5% View diff
template/public/img/uploads/mobi-bannerspromo-mobi-1_4.webp 178.19 KB 53.23 KB -70.1% View diff
template/public/img/uploads/mobi-boas-festas-desk.webp 112.54 KB 39.50 KB -64.9% View diff
template/public/img/uploads/mobi-boas-festas-mobile.webp 74.04 KB 26.18 KB -64.6% View diff
template/public/img/uploads/mobi-consumidor_prancheta-1.webp 471.45 KB 74.65 KB -84.2% View diff
template/public/img/uploads/mobi-consumidor-06.webp 113.60 KB 27.91 KB -75.4% View diff
template/public/img/uploads/mobi-desk.jpg 125.85 KB 51.97 KB -58.7% View diff
template/public/img/uploads/mobi-mobile.jpg 198.29 KB 83.16 KB -58.1% View diff
template/public/img/uploads/mobi.jpg 62.87 KB 38.04 KB -39.5% View diff
template/public/img/uploads/mobifans_-banner-site-black-week2.webp 276.86 KB 80.27 KB -71.0% View diff
template/public/img/uploads/mobifans_-sugestao-banner-site-black-week-promo2-1920x480-2-.webp 238.11 KB 61.17 KB -74.3% View diff
template/public/img/uploads/mobifans_-sugestao-banner-site-black-week-promo2-1920x480-3-.webp 237.91 KB 59.45 KB -75.0% View diff
template/public/img/uploads/mobifans-sugestao-banner-site-black-week-promo2-1-1-.webp 330.34 KB 204.28 KB -38.2% View diff
template/public/img/uploads/mobifans-sugestao-banner-site-black-week-promo2-2-.webp 148.78 KB 81.14 KB -45.5% View diff
template/public/img/uploads/mobile-1-.png 84.73 KB 58.67 KB -30.8% View diff
template/public/img/uploads/mobile-banner-mobi_magsafe-gradiente-copiar-1-.webp 43.20 KB 32.53 KB -24.7% View diff
template/public/img/uploads/mobile-mob-promo-ajustado-2x-.webp 148.68 KB 59.73 KB -59.8% View diff
template/public/img/uploads/mobile-promo-2-150.webp 50.76 KB 28.16 KB -44.5% View diff
template/public/img/uploads/natal-mobi-desk-02.webp 160.66 KB 54.92 KB -65.8% View diff
template/public/img/uploads/natal-mobi-mobile-02.webp 101.80 KB 35.16 KB -65.5% View diff
template/public/img/uploads/pix-.png 737 bytes 533 bytes -27.7% View diff
template/public/img/uploads/promo_mobi_namorados_d.jpeg 107.06 KB 71.59 KB -33.1% View diff
template/public/img/uploads/promo_mobi_namorados_m.jpeg 196.52 KB 130.36 KB -33.7% View diff
template/public/img/uploads/selo-norton-secured-1-.webp 4.14 KB 2.03 KB -50.9% View diff
template/public/img/uploads/selo-norton-secured.png 49.36 KB 31.65 KB -35.9% View diff
template/public/img/uploads/selo-norton-secured.webp 17.74 KB 12.89 KB -27.3% View diff
template/public/img/uploads/visa-.png 693 bytes 481 bytes -30.6% View diff

126 images did not require optimisation.

Copy link
Contributor Author

renovate bot commented Dec 23, 2024

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants