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

Merged
merged 1 commit into from
Oct 14, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 8, 2023

Mend Renovate

This PR contains the following updates:

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

Release Notes

rollup/rollup (rollup)

v4.1.0

Compare Source

2023-10-14

Features
  • Reduce memory usage of Rollup builds (#​5133)
Pull Requests

v4.0.2

Compare Source

2023-10-06

Bug Fixes
  • Fix annotation detection logic to not fail when a non-ASCII character precedes a double underscore (#​5178)
Pull Requests

v4.0.1

Compare Source

2023-10-06

Bug Fixes
  • Do not panic on trailing semicolons after class methods (#​5173)
  • Add artifact for arm64 linux musl target (#​5176)
Pull Requests

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

Configuration

📅 Schedule: Branch creation - "before 12pm on Sunday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

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.

@renovate renovate bot requested a review from dan-online as a code owner October 8, 2023 01:43
@renovate renovate bot added the dependencies label Oct 8, 2023
@renovate renovate bot enabled auto-merge (squash) October 8, 2023 01:43
@renovate renovate bot merged commit 72a39ae into main Oct 14, 2023
3 checks passed
@renovate renovate bot deleted the renovate/rollup-4.x branch October 14, 2023 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants