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 #905

Merged
merged 1 commit into from
Oct 6, 2023

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 5, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rollup (source) ^3.27.2 -> ^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 "with" syntax for import attributes is not yet supported, awaiting support in SWC (#​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 thi s.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

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 this update 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.

@Brooooooklyn Brooooooklyn merged commit 42ea785 into master Oct 6, 2023
2 checks passed
@Brooooooklyn Brooooooklyn deleted the renovate/rollup-4.x branch October 6, 2023 06:44
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.

1 participant