chore(deps): update dependency rollup to v3.29.4
This MR contains the following updates:
Package | Change | Age | Adoption | Passing | Confidence |
---|---|---|---|---|---|
rollup (source) | 3.10.1 -> 3.29.4 |
Release Notes
rollup/rollup
v3.29.4
2023-09-28
Bug Fixes
- Fix static analysis when an exported function uses callbacks (#5158)
Merge Requests
- #5158: Deoptimize all parameters when losing track of a function (@lukastaegert)
v3.29.3
2023-09-24
Bug Fixes
- Fix a bug where code was wrongly tree-shaken after mutating function parameters (#5153)
Merge Requests
- #5145: docs: improve the docs repl appearance in the light mode (@TrickyPi)
- #5148: chore(deps): update dependency @vue/eslint-config-typescript to v12 (@renovate[bot])
- #5149: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5153: Fully deoptimize first level path when deoptimizing nested parameter paths (@lukastaegert)
v3.29.2
2023-09-15
Bug Fixes
- Export
TreeshakingPreset
type (#5131)
Merge Requests
-
#5131: fix: exports
TreeshakingPreset
(@moltar) - #5134: docs: steps to enable symlinks on windows (@thebanjomatic)
- #5137: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
v3.29.1
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)
Merge Requests
- #5114: fix(perf): avoid superfluous timer wrappings in watch mode (@ZhengLiu2825)
- #5118: fix: access document.currentScript at the top level (@TrickyPi)
- #5125: chore(deps): update actions/checkout action to v4 (@renovate[bot])
- #5126: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5129: re-enbale repl-artefacts workflow for rollup-swc branch (@TrickyPi)
v3.29.0
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)
Merge Requests
- #5105: Added option to name sourcemap files, i.e. a output.sourcemapFileName… (@atti187)
- #5108: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5109: Docs: load full path of rollup.browser.js for Rollup V4 (@TrickyPi)
- #5112: feat(types): add generic type for plugin api (@sxzz)
- #5115: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5123: Deoptimize custom event detail (@lukastaegert)
v3.28.1
2023-08-22
Bug Fixes
- Ensure external files with relative import paths outside the target are rendered correctly (#5099)
Merge Requests
- #5093: chore(deps): update dependency eslint-config-prettier to v9 (@renovate[bot])
- #5094: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5099: Fix resolution of relative external files outside target directory (@lukastaegert)
- #5101: chore(deps): update dependency lint-staged to v14 (@renovate[bot])
- #5102: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
v3.28.0
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)
Merge Requests
-
#5086: feat: add
preliminaryFileName
toOutputChunk
(@lsdsjy) - #5087: perf(sourcemaps): add back lazy sourcemap decode and handling nullish mappings (@thebanjomatic)
- #5091: fix: the type of RenderedModule.code is readonly (@TrickyPi)
v3.27.2
2023-08-04
Bug Fixes
- Revert sourcemap performance improvement for now as it causes issues with Vite (#5075)
Merge Requests
- #5075: Revert perf(sourcemap): lazy compute decoded mappings (@thebanjomatic)
v3.27.1
2023-08-03
Bug Fixes
- Improve performance when generating sourcemaps (#5075)
Merge Requests
- #5075: perf(sourcemap): lazy compute decoded mappings (@thebanjomatic)
v3.27.0
2023-07-28
Features
- Mark
Object.values
andObject.entries
as pure if their argument does not contain getters (#5072)
Merge Requests
- #5070: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5071: docs(tutorial): change the .js extension to .mjs (@TrickyPi)
- #5072: Add known globals (@sapphi-red)
- #5078: chore(deps): update dependency @vue/eslint-config-prettier to v8 (@renovate[bot])
- #5079: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
v3.26.3
2023-07-17
Bug Fixes
- Do not pass external modules to
manualChunks
to avoid breaking existing configs (#5068)
Merge Requests
- #5056: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5059: chore(config): migrate renovate config (@renovate[bot])
- #5064: chore(deps): update dependency prettier to v3 (@renovate[bot])
- #5065: chore(deps): update typescript-eslint monorepo to v6 (major) (@renovate[bot])
- #5068: fix: don't pass external modules to the manualChunks function (@TrickyPi)
v3.26.2
2023-07-06
Bug Fixes
- Improve error handling when manual chunks would contain external modules (#5050)
Merge Requests
- #5050: fix: improve error for manualChunks' modules that are resolved as an external module (@TrickyPi)
v3.26.1
2023-07-05
Bug Fixes
- Support
hasOwnProperty
as exported name in CommonJS (#5010) - Properly reference browser types in package file (#5051)
Merge Requests
- #5010: safe hasOwnProperty call (@LongTengDao)
- #5051: @rollup/browser: fix types export map entry (@developit)
v3.26.0
2023-06-30
Features
- Add
--filterLogs
CLI flag andROLLUP_FILTER_LOGS
environment variable for log filtering (#5035)
Merge Requests
- #5035: Add ability to filter logs via CLI option or environment variable (@lukastaegert)
- #5049: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
v3.25.3
2023-06-26
Bug Fixes
- Fix error when inlining dynamic imports that contain unused reexported variables (#5047)
Merge Requests
- #5047: Do not add tree-shaken variables to namespaces when inlining dynamic imports (@lukastaegert)
v3.25.2
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)
Merge Requests
- #5038: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5040: Fix typo in index.md (@vHeemstra)
- #5042: fix: a plugin error can contains numeric code (@TrickyPi)
-
#5045: Fix
this.error
withpos
intransform
hook (@sapphi-red) - #5046: chore(deps): update dependency locate-character to v3 (@renovate[bot])
v3.25.1
2023-06-12
Bug Fixes
- Respect
__NO_SIDE_EFFECTS__
for async functions (#5031)
Merge Requests
v3.25.0
2023-06-11
Features
- Add
this.info
andthis.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
andthis.debug
to avoid heavy computations based on log level (#5026) - Add
onLog
plugin hook to read, filter and map logs from plugins (#5026)
Merge Requests
- #5026: Add Logging API (@lukastaegert)
v3.24.1
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)
Merge Requests
- #5027: fix turborepo with rollup --watch (@plumber-dhaval)
- #5028: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5029: fix: get right sideEffectModules (@TrickyPi)
v3.24.0
2023-06-07
Features
- Add new annotation
/* #__NO_SIDE_EFFECTS__ */
to mark function declarations as side effect free (#5024)
Merge Requests
v3.23.1
2023-06-04
Bug Fixes
- Ensure the last segment of sourcemapBaseUrl is never omitted (#5022)
Merge Requests
- #5006: Better workflow caching (@lukastaegert)
- #5012: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5022: fix: add a trailing slash automatically for sourcemapBaseUrl (@TrickyPi)
- #5023: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
v3.23.0
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)
Merge Requests
- #4990: feat: this.emitFile support prebuilt-chunk type (@TrickyPi)
- #5005: feat: mark Set, Map, WeakSet and WeakMap with array arguments as pure (@TrickyPi)
v3.22.1
2023-05-21
Bug Fixes
- Remove force quit again as it caused some issues (#5004)
Merge Requests
- #5001: chore(deps): update dependency @rollup/plugin-commonjs to v25 (@renovate[bot])
- #5002: chore(deps): update dependency eslint-plugin-unicorn to v47 (@renovate[bot])
- #5003: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5004: Do not force quit Rollup or close stdout (@lukastaegert)
v3.22.0
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)
Merge Requests
- #4989: Prevent empty chunks and thoroughly improve experimentalMinChunkSize (@lukastaegert)
v3.21.8
2023-05-16
Bug Fixes
- Allow a namespace to properly contain itself as a named export (#4991)
Merge Requests
- #4991: Handle self-referencing namespaces (@lukastaegert)
v3.21.7
2023-05-13
Bug Fixes
- Show correct error on uncaught exceptions in watch mode (#4987)
Merge Requests
- #4987: Properly quit on uncaught exceptions (@lukastaegert)
- #4988: test: add options type for function tests (@TrickyPi)
v3.21.6
2023-05-09
Bug Fixes
- Ensure Rollup CLI prints everything to stdout before exiting (#4980)
Merge Requests
- #4980: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #4983: Prevent exit before stdout is drained (@lukastaegert)
v3.21.5
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)
Merge Requests
- #4975: Keep leading comments on consecutive lines (@lukastaegert)
- #4979: Use correct scope in switch statements (@lukastaegert)
v3.21.4
2023-05-03
Bug Fixes
- Resolve crash when shimming a missing export in an otherwise non-included module when preserving modules (#4971)
Merge Requests
- #4971: Handle shimming missing exports when preserving modules (@lukastaegert)
- #4972: Configure Renovate (@renovate[bot])
v3.21.3
2023-05-02
Bug Fixes
- Run
process.exit()
when Rollup CLI finishes successfully to solve issues on some systems (#4969)
Merge Requests
- #4954: test: enable typecheck for _config files (@antfu)
- #4969: Automatically force close Rollup when done (@lukastaegert)
v3.21.2
2023-04-30
Bug Fixes
- Mark global functions that trigger iterators as impure for now (#4955)
Merge Requests
- #4955: fix: mark some known globals or their functions as impure (@TrickyPi)
v3.21.1
2023-04-29
Bug Fixes
- Make sure call arguments are properly deoptimized when a function uses the
arguments
variable (#4965)
Merge Requests
- #4957: Update dependencies (@lukastaegert)
- #4964: Fix REPL in dev (@lukastaegert)
- #4965: Ensure arguments are deoptimized when arguments variable is used (@lukastaegert)
- #4967: Log REPL output to console (@lukastaegert)
v3.21.0
2023-04-23
Features
- Support tree-shaking of named exports in dynamic imports when using destructuring and similar patterns (#4952)
Merge Requests
v3.20.7
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)
Merge Requests
- #4943: Add a test for reserved keywords used as import/export specifiers (@Andarist)
- #4949: Deoptimize right side in for-of loops (@lukastaegert)
- #4950: Support default exported classes that extend other classes (@lukastaegert)
v3.20.6
2023-04-18
Bug Fixes
- Revert handling of non-JS import and export names due to regressions (#4914)
Merge Requests
- #4914: feat: add locales in vitepress config (@iDestin)
- #4946: Revert #4939 for now (@lukastaegert)
v3.20.5
2023-04-18
Bug Fixes
- Handle import and export names that are not valid JavaScript identifiers (#4939)
Merge Requests
- #4939: Fixed imports/exports that are illegal identifiers in the es output (@Andarist)
- #4941: Reinstate global styles (@lukastaegert)
v3.20.4
2023-04-17
Bug Fixes
- Do not remove breaks statements after switch statements with conditional breaks (#4937)
Merge Requests
- #4937: fix: handle conditional breaks in nested switch statement cases (@TrickyPi and @lukastaegert)
v3.20.3
2023-04-16
Bug Fixes
- Reduce memory consumption for function call parameter analysis (#4938)
- Fix types for
shouldTransformCachedModule
(#4932)
Merge Requests
- #4925: chore: repl style add scoped (@btea)
- #4926: docs: Update the x_google_ignorelist url (@jecfish)
- #4932: Allow shouldTransformCachedModule to return null (@bluwy)
- #4935: Bump peter-evans/create-or-update-comment from 2 to 3 (@dependabot[bot])
- #4936: Disable puppeteer sandbox to fix Vercel deployment (@lukastaegert)
- #4938: Improve memory usage for parameter deoptimizations (@lukastaegert)
v3.20.2
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)
Merge Requests
- #4921: Handle manual chunks where the entry is not part of the module graph (@lukastaegert)
- #4922: Do not fail if the location of a warning is outside the original source (@lukastaegert)
v3.20.1
2023-03-23
Bug Fixes
- Fix returned file name from this.getFileName when assets are deduplicated (#4919)
Merge Requests
- #4919: Only set asset names when finalizing (@lukastaegert)
v3.20.0
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)
Merge Requests
- #4912: fix: make file name deterministic in parallel emits (fix #4909) (@sun0day)
- #4913: Provide synthetic namespace for dynamic imports when perserving modules (@lukastaegert)
v3.19.1
2023-03-10
Bug Fixes
- Produce valid code when the first statement in aclass static block is tree-shaken (#4898)
Merge Requests
- #4898: fix: set a correct node location for static blocks (@TrickyPi)
-
#4900: docs: fix table at
output.sanitizeFileName
section (@0x009922)
v3.19.0
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)
Merge Requests
-
#4890: Fix
npm run dev
(@lukastaegert) - #4892: Only selectively deoptimize call parameters (@lukastaegert)
- #4897: Pre-render mermaid graphs on website (@lukastaegert)
v3.18.0
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)
Merge Requests
- #4871: Add experimental logging for side effects (@lukastaegert)
-
#4877: feat: mark files in a
node_modules
as ignore-listed by default (@bmeurer) - #4880: build: use @rollup/plugin-replace to replace chokidar fsevents (@dnalborczyk)
- #4887: Refactor (@dnalborczyk)
v3.17.3
2023-02-25
Bug Fixes
- Handle non-URL-safe characters when poly-filling import.meta.url (#4875)
Merge Requests
- #4870: fix: style optimization in dark mode (@huodoushigemi)
-
#4875: Fix transformation of
import.meta.url
in CommonJS (@fasttime) - #4876: fix: wrong params of the transform hook (@ZzqiZQute)
- #4878: Improve test stability (@lukastaegert)
v3.17.2
2023-02-20
Bug Fixes
- Do not omit code if a file that only re-exports a used variable has
moduleSideEffects
set totrue
(#4867) - Add missing
needsCodeReference
property in TypeScript for asset tree-shaking (#4868) - Add correct side effect configuration for additional Object and Promise methods (#4323)
Merge Requests
- #4323: feat: add known globals (@dnalborczyk)
- #4867: Include side effects of re-exporters unless they have moduleSideEffects: false (@lukastaegert)
-
#4868: Add
needsCodeReference
property toEmittedAsset
(@sapphi-red)
v3.17.1
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)
Merge Requests
- #4853: feat: export loadConfigFile type (@TrickyPi)
- #4866: Do not mark variable access in files without side effects as TDZ (@lukastaegert)
v3.17.0
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)
Merge Requests
- #4862: Improve chunking performance (@lukastaegert)
v3.16.0
2023-02-17
Features
- Support
output.sourcemapIgnoreList
option to mark file sources as ignored in thex_google_ignoreList
attribute of the resulting sourcemap (#4848) - Support sourcemaps where
sourcesContent
containsnull
entries (#4846) - Allow explicitly passing
true
for thecache
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)
Merge Requests
- #4846: Update magic-string and adjust types. (@bmeurer)
-
#4848: Introduce
sourcemapIgnoreList
predicate. (@bmeurer) - #4851: Fix chunk graph update when merging chunks for minChunkSize (@lukastaegert)
- #4852: docs: make api params more readable (@cunzaizhuyi)
- #4856: simplify code in includeStatements (@TrickyPi)
- #4859: Allow to pass "true" to InputOptions.cache (@danielrentz)
v3.15.0
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)
Merge Requests
- #4842: fix: add this option to context.ignore (@TrickyPi)
- #4843: fixed the logo link (@oMatheuss)
- #4844: Update index.md (@cunzaizhuyi)
- #4845: docs: fix style (@TrickyPi)
v3.14.0
2023-02-05
Features
- Add
experimentalDeepDynamicChunkOptimization
option to produce fewer chunks from dynamic imports (#4837)
Merge Requests
- #4837: Add flag to re-enable deep dynamic chunk optimization (@lukastaegert)
- #4839: fix: correct incorrect assertions (@TrickyPi)
v3.13.0
2023-02-03
Features
- Prevent chunk cycles when using
experimentalMinChunkSize
(#4723)
Merge Requests
- #4723: Improve minChunkSize algorithm (@lukastaegert)
- #4833: docs: Fix typo (@mturoci)
- #4835: Tables in docs (@lukastaegert)
v3.12.1
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)
Merge Requests
- #4827: fix: use the original class name in the class body (@TrickyPi)
- #4829: Improve and fix cross-chunk-reexport warning (@lukastaegert)
- #4830: Add Algolia doc search (@lukastaegert)
- #4831: Add warning not to add assets directly to the bundle (@lukastaegert)
v3.12.0
2023-01-28
Features
- Change generated external namespace reexport helper code for CommonJS to better work with NodeJS named export detection (#4826)
Merge Requests
- #4825: Add and use anchors for nested options (@lukastaegert)
- #4826: Use old namespace reexport code pattern for better Node support (@lukastaegert)
v3.11.0
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)
Merge Requests
- #4805: feat: add needsCodeReference field to EmittedAsset (@TrickyPi)
- #4807: Rewrite website in Vitepress and merge it into the main repository (@lukastaegert)
- #4816: web-publisher: Update docs/faqs/index.md (@PuruVJ)
- #4819: Replace fs-extra with built-ins (@dnalborczyk)
- #4820: Introduce timeout-minutes in Github actions ci (@dnalborczyk)
- #4822: Tweak document landing page (@sapphi-red)
- #4823: Minor migration guide improvements (@sapphi-red)
- #4824: Add most options to the REPL (@lukastaegert)
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.