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 dependency rollup to v4 #14813

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 9, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rollup (source) ^2.79.1 -> ^4.0.0 age adoption passing confidence

Release Notes

rollup/rollup (rollup)

v4.0.0

Compare Source

2023-10-05

BREAKING CHANGES
General Changes
  • The minimal required Node version is now 18.0.0 (#​5142)
  • The browser build now relies on a WASM artifact that needs to be provided as well (#​5073)
  • The NodeJS build now relies on an optional native binary; for unsupported platforms, users can use the @rollup/wasm-node package that has the same interface as Rollup but relies on WASM artifacts (#​5073)
  • The INVALID_IMPORT_ASSERTION error code has been replaced with INVALID_IMPORT_ATTRIBUTE (#​5073)
  • Rollup will now warn for @__PURE__ and @__NO_SIDE_EFFECTS__ annotations in invalid locations (#​5165)
  • If an entry module starts with a shebang comment #!..., this comment will be prepended to the output for es and cjs formats (#​5163)
  • File hashes will now use url-safe base64 encoded hashes (#​5155)
  • The maximum hash length has been reduced to 22 characters (#​5155)
  • The RollupWarning type has been removed in favor of the RollupLog type (#​5147)
Changes to Rollup Options
  • Acorn plugins are no longer supported, the acornInjectPlugins option has been removed (#​5073)
  • The acorn option has been removed (#​5073)
  • output.externalImportAssertions has been deprecated in favor of output.externalImportAttributes (#​5073)
  • inlineDynamicImports, manualChunks and preserveModules have been removed on input option level: Please use the corresponding output options of the same names (#​5143)
  • Removed output options (#​5143):
    • output.experimentalDeepDynamicChunkOptimization: This option is no longer needed as Rollup now always runs the full chunking algorithm
    • output.dynamicImportFunction: Use the renderDynamicImport plugin hook instead
    • output.namespaceToStringTag: Use output.generatedCode.symbols instead
    • output.preferConst: Use output.generatedCode.constBindings instead
Plugin API Changes
  • For this.resolve, the default of the skipSelf option is now true (#​5142)
  • this.parse now only supports the allowReturnOutsideFunction option for now (#​5073)
  • Import assertions now use the new import attribute AST structure (#​5073)
  • "assertions" have been replaced with "attributes" in various places of the plugin interface (#​5073)
  • If the import of a module id is handled by the load hook of a plugin, rollup.watch no longer watches the actual file if the module id corresponds to a real path; if this is intended, then the plugin is responsible for calling this.addWatchFile for any dependency files (#​5150)
  • The normalized input options provided by buildStart and other hooks no longer contain an onwarn handler; plugins should use onLog instead (#​5147)
  • this.moduleIds has been removed from the plugin context: Use this.getModuleIds() instead (#​5143)
  • The hasModuleSideEffects flag has been removed from the ModuleInfo returned by this.getModuleInfo(): Use moduleSideEffects on the ModuleInfo instead (#​5143)
Features
  • Improve parsing speed by switching to a native SWC-based parser (#​5073)
  • Rollup will now warn for @__PURE__ and @__NO_SIDE_EFFECTS__ annotations in invalid locations (#​5165)
  • The parser is now exposed as a separate export parseAst (#​5169)
Bug Fixes
  • Rollup no longer tries to watch virtual files if their name corresponds to an actual file name; instead, plugins handle watching via this.addWatchFile() (#​5150)
Pull Requests

v3.29.4

Compare Source

2023-09-28

Bug Fixes
  • Fix static analysis when an exported function uses callbacks (#​5158)
Pull Requests

v3.29.3

Compare Source

2023-09-24

Bug Fixes
  • Fix a bug where code was wrongly tree-shaken after mutating function parameters (#​5153)
Pull Requests

v3.29.2

Compare Source

2023-09-15

Bug Fixes
  • Export TreeshakingPreset type (#​5131)
Pull Requests

v3.29.1

Compare Source

2023-09-10

Bug Fixes
  • Fix time measurement of plugin hooks in watch mode (#​5114)
  • Ensure accessing document.currentScript in import.meta.url returns correct results (#​5118)
Pull Requests

v3.29.0

Compare Source

2023-09-06

Features
  • Add output.sourcemapFileNames option (#​5105)
  • Add generic type parameter for api to Plugin type (#​5112)
Bug Fixes
  • Ensure mutations of CustomEvent details are tracked (#​5123)
Pull Requests

v3.28.1

Compare Source

2023-08-22

Bug Fixes
  • Ensure external files with relative import paths outside the target are rendered correctly (#​5099)
Pull Requests

v3.28.0

Compare Source

2023-08-09

Features
  • Add a new property preliminaryFileName to generated chunks containing the file name placeholder (#​5086)
  • Improve performance of sourcemap generation by lazily decoding mappings (#​5087)
Bug Fixes
  • Make the code property of rendered modules in the output readonly (#​5091)
Pull Requests

v3.27.2

Compare Source

2023-08-04

Bug Fixes
  • Revert sourcemap performance improvement for now as it causes issues with Vite (#​5075)
Pull Requests

v3.27.1

Compare Source

2023-08-03

Bug Fixes
  • Improve performance when generating sourcemaps (#​5075)
Pull Requests

v3.27.0

Compare Source

2023-07-28

Features
  • Mark Object.values and Object.entries as pure if their argument does not contain getters (#​5072)
Pull Requests

v3.26.3

Compare Source

2023-07-17

Bug Fixes
  • Do not pass external modules to manualChunks to avoid breaking existing configs (#​5068)
Pull Requests

v3.26.2

Compare Source

2023-07-06

Bug Fixes
  • Improve error handling when manual chunks would contain external modules (#​5050)
Pull Requests
  • #​5050: fix: improve error for manualChunks' modules that are resolved as an external module (@​TrickyPi)

v3.26.1

Compare Source

2023-07-05

Bug Fixes
  • Support hasOwnProperty as exported name in CommonJS (#​5010)
  • Properly reference browser types in package file (#​5051)
Pull Requests

v3.26.0

Compare Source

2023-06-30

Features
  • Add --filterLogs CLI flag and ROLLUP_FILTER_LOGS environment variable for log filtering (#​5035)
Pull Requests

v3.25.3

Compare Source

2023-06-26

Bug Fixes
  • Fix error when inlining dynamic imports that contain unused reexported variables (#​5047)
Pull Requests

v3.25.2

Compare Source

2023-06-24

Bug Fixes
  • Handle plugin errors where code is not a string (#​5042)
  • Use current transformed source when generating code frames with positions in transform hooks (#​5045)
Pull Requests

v3.25.1

Compare Source

2023-06-12

Bug Fixes
  • Respect __NO_SIDE_EFFECTS__ for async functions (#​5031)
Pull Requests

v3.25.0

Compare Source

2023-06-11

Features
  • Add this.info and this.debug plugin context logging functions (#​5026)
  • Add onLog option to read, map and filter logs (#​5026)
  • Add logLevel option to fully suppress logs by level (#​5026)
  • Support function logs in this.warn, this.info and this.debug to avoid heavy computations based on log level (#​5026)
  • Add onLog plugin hook to read, filter and map logs from plugins (#​5026)
Pull Requests

v3.24.1

Compare Source

2023-06-10

Bug Fixes
  • Fix an issue where bundles with @rollup/plugin-commonjs were missing internal dependencies when code-splitting (#​5029)
  • Do not use process.exit(0) in watch mode to avoid issues in embedded scenarios (#​5027)
Pull Requests

v3.24.0

Compare Source

2023-06-07

Features
  • Add new annotation /* #__NO_SIDE_EFFECTS__ */ to mark function declarations as side effect free (#​5024)
Pull Requests
  • #​5024: feat: support #__NO_SIDE_EFFECTS__ annotation for function declaration (@​antfu)

v3.23.1

Compare Source

2023-06-04

Bug Fixes
  • Ensure the last segment of sourcemapBaseUrl is never omitted (#​5022)
Pull Requests

v3.23.0

Compare Source

2023-05-22

Features
  • Support emitting "prebuilt chunks" from plugins (#​4990)
Bug Fixes
  • Mark Sets and Maps as pure when they receive an array literal as argument (#​5005)
Pull Requests

v3.22.1

Compare Source

2023-05-21

Bug Fixes
  • Remove force quit again as it caused some issues (#​5004)
Pull Requests

v3.22.0

Compare Source

2023-05-17

Features
  • Prevent empty non-facade chunks by merging them into other suitable chunks (#​4989)
  • Avoid facade chunks in some situations involving reexports (#​4989)
  • Improve algorithm for best merge target when using experimentalMinChunkSize to take tree-shaking into account (#​4989)
Bug Fixes
  • Take side effects of external dependencies into account when merging chunks for experimentalMinChunkSize (#​4989)
Pull Requests

v3.21.8

Compare Source

2023-05-16

Bug Fixes
  • Allow a namespace to properly contain itself as a named export (#​4991)
Pull Requests

v3.21.7

Compare Source

2023-05-13

Bug Fixes
  • Show correct error on uncaught exceptions in watch mode (#​4987)
Pull Requests

v3.21.6

Compare Source

2023-05-09

Bug Fixes
  • Ensure Rollup CLI prints everything to stdout before exiting (#​4980)
Pull Requests

v3.21.5

Compare Source

2023-05-05

Bug Fixes
  • Keep all consecutive lines at the top of each module that start with a comment (#​4975)
  • Ensure that declarations inside switch cases do not use the same scope as the discriminator (#​4979)
Pull Requests

v3.21.4

Compare Source

2023-05-03

Bug Fixes
  • Resolve crash when shimming a missing export in an otherwise non-included module when preserving modules (#​4971)
Pull Requests

v3.21.3

Compare Source

2023-05-02

Bug Fixes
  • Run process.exit() when Rollup CLI finishes successfully to solve issues on some systems (#​4969)
Pull Requests

v3.21.2

Compare Source

2023-04-30

Bug Fixes
  • Mark global functions that trigger iterators as impure for now (#​4955)
Pull Requests

v3.21.1

Compare Source

2023-04-29

Bug Fixes
  • Make sure call arguments are properly deoptimized when a function uses the arguments variable (#​4965)
Pull Requests

v3.21.0

Compare Source

2023-04-23

Features
  • Support tree-shaking of named exports in dynamic imports when using destructuring and similar patterns (#​4952)
Pull Requests

v3.20.7

Compare Source

2023-04-21

Bug Fixes
  • Properly track array element mutations when iterating with a for-of loop (#​4949)
  • Handle default exporting an anonymous class that extends another class (#​4950)
Pull Requests

v3.20.6

Compare Source

2023-04-18

Bug Fixes
  • Revert handling of non-JS import and export names due to regressions (#​4914)
Pull Requests

v3.20.5

Compare Source

2023-04-18

Bug Fixes
  • Handle import and export names that are not valid JavaScript identifiers (#​4939)
Pull Requests

v3.20.4

Compare Source

2023-04-17

Bug Fixes
  • Do not remove breaks statements after switch statements with conditional breaks (#​4937)
Pull Requests

v3.20.3

Compare Source

2023-04-16

Bug Fixes
  • Reduce memory consumption for function call parameter analysis (#​4938)
  • Fix types for shouldTransformCachedModule (#​4932)
Pull Requests

v3.20.2

Compare Source

2023-03-24

Bug Fixes
  • Fix a crash when using a manual chunk entry that is not already included in the module graph (#​4921)
  • Fix a crash when reporting a warning with incorrect sourcemap information (#​4922)
Pull Requests

v3.20.1

Compare Source

2023-03-23

Bug Fixes
  • Fix returned file name from this.getFileName when assets are deduplicated (#​4919)
Pull Requests

v3.20.0

Compare Source

2023-03-20

Features
  • Allow dynamically imported files to have synthetic named exports when preserving modules (#​4913)
Bug Fixes
  • Use deterministic file name when emitting several files with same source (#​4912)
  • Fix a crash when dynamically importing a file with synthetic named exports when preserving modules (#​4913)
Pull Requests

v3.19.1

Compare Source

2023-03-10

Bug Fixes
  • Produce valid code when the first statement in aclass static block is tree-shaken (#​4898)
Pull Requests

v3.19.0

Compare Source

2023-03-09

Features
  • Make reassignment tracking of call parameters more specific to no lose information when an object is passed to a function (#​4892)
Pull Requests

v3.18.0

Compare Source

2023-03-01

Features
  • Add experimentalLogSideEffects to log the first detected side effect in every module (#​4871)
  • Ignore-list sourcemaps of files inside node_modules by default (#​4877)
Pull Requests

v3.17.3

Compare Source

2023-02-25

Bug Fixes
  • Handle non-URL-safe characters when poly-filling import.meta.url (#​4875)
Pull Requests

v3.17.2

Compare Source

2023-02-20

Bug Fixes
  • Do not omit code if a file that only re-exports a used variable has moduleSideEffects set to true (#​4867)
  • Add missing needsCodeReference property in TypeScript for asset tree-shaking (#​4868)
  • Add correct side effect configuration for additional Object and Promise methods (#​4323)
Pull Requests

v3.17.1

Compare Source

2023-02-18

Bug Fixes
  • Add TypeScript types for loadConfigFile (#​4853)
  • Fix an issue that could include unused classes in the bundle if their super class was in a file with moduleSideEffects: false (#​4866)
Pull Requests

v3.17.0

Compare Source

2023-02-18

Features
  • Deprecate experimentalDeepDynamicChunkOptimization and always run the full chunk generation algorithm (#​4862)
Bug Fixes
  • Fix an issue that caused very slow builds for projects with over 1000 dynamic imports when experimentalDeepDynamicChunkOptimization was enabled (#​4862)
Pull Requests

v3.16.0

Compare Source

2023-02-17

Features
  • Support output.sourcemapIgnoreList option to mark file sources as ignored in the x_google_ignoreList attribute of the resulting sourcemap (#​4848)
  • Support sourcemaps where sourcesContent contains null entries (#​4846)
  • Allow explicitly passing true for the cache option to override Vite's default (#​4859)
Bug Fixes
  • Fix an issue where unrelated side effects spilled into other chunks when using the experimentalMinChunkSize option (#​4851)
Pull Requests

v3.15.0

Compare Source

2023-02-10

Features
  • Do not consider instantiating a constructor a side effect if it adds properties to "this" and is instantiated elsewhere (#​4842)
Bug Fixes
  • Improve side effect detection in constructors (#​4842)
Pull Requests

v3.14.0

Compare Source

2023-02-05

Features
  • Add experimentalDeepDynamicChunkOptimization option to produce fewer chunks from dynamic imports (#​4837)
Pull Requests

v3.13.0

Compare Source

2023-02-03

Features
  • Prevent chunk cycles when using experimentalMinChunkSize (#​4723)
Pull Requests

v3.12.1

Compare Source

2023-02-01

Bug Fixes
  • Handle self-references in class static blocks and construtors when the class is renamed (#​4827)
  • Improve warnings when creating circular chunks taht reexport variables (#​4829)
Pull Requests

v3.12.0

Compare Source

2023-01-28

Features
  • Change generated external namespace reexport helper code for CommonJS to better work with NodeJS named export detection (#​4826)
Pull Requests

v3.11.0

Compare Source

2023-01-26

Features
  • Support opt-in tree-shaking for emitted assets based on code references (#​4805)
Bug Fixes
  • Adapt documentation references in Rollup to new website (#​4807)
Pull Requests

Configuration

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

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

Rebasing: Never, 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 has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot requested a review from a team as a code owner October 9, 2023 03:29
@renovate
Copy link
Contributor Author

renovate bot commented Oct 17, 2023

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.

@tay1orjones
Copy link
Member

This one feels somewhat closer to merge. I updated all the relevant plugins and corrected a config file.

The only things not building now are some apps in the examples directory. Something about Downshift not being available, which makes me wonder if we're using a config option that was deprecated in v3 and removed in v4. Nothing stood out in the changelog, but I could've missed something.

It could be helpful to do something the migration guide suggests:

update to rollup@3.29.4 first, add the strictDeprecations option to your config and resolve any errors that pop up

@netlify
Copy link

netlify bot commented Oct 17, 2023

Deploy Preview for v11-carbon-react ready!

Name Link
🔨 Latest commit 7dc5f0d
🔍 Latest deploy log https://app.netlify.com/sites/v11-carbon-react/deploys/652ef5fa321c7a0008a09432
😎 Deploy Preview https://deploy-preview-14813--v11-carbon-react.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented Oct 17, 2023

Deploy Preview for carbon-elements ready!

Name Link
🔨 Latest commit 7dc5f0d
🔍 Latest deploy log https://app.netlify.com/sites/carbon-elements/deploys/652ef5faa2fea40008ff6b3b
😎 Deploy Preview https://deploy-preview-14813--carbon-elements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: ⏱ Backlog
Development

Successfully merging this pull request may close these issues.

None yet

2 participants