-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 v2 #6033
Conversation
f864c9f
to
67764dc
Compare
Codecov Report
@@ Coverage Diff @@
## master #6033 +/- ##
=======================================
Coverage 95.36% 95.36%
=======================================
Files 89 89
Lines 3664 3664
Branches 903 903
=======================================
Hits 3494 3494
Misses 146 146
Partials 24 24 Continue to review full report at Codecov.
|
67764dc
to
fae7db8
Compare
15cbe17
to
cd98e6c
Compare
daa7b58
to
12ef1db
Compare
a1d1a5a
to
8b0f9df
Compare
f3eaf40
to
5aa09ed
Compare
5aa09ed
to
14c5ff1
Compare
Renovate Ignore NotificationAs this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 2.x releases. However, if you upgrade to 2.x manually then Renovate will then reenable updates for minor and patch updates automatically. If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened. |
It appears our closing of this old @renovate PR to update Rollup to v2 caused @renovate to stop opening PRs to update Rollup to any v2.x.y version, so our version of Rollup has been out of date since then: #6033 Though obviously not ideal, this major version lag hasn't been a problem for us because Rollup v1 still works very well, and we use it only to generate CommonJS bundles, which is a relatively stable build target (CommonJS hasn't changed much lately). We rely on other tools like tsc for critical stuff like TypeScript compilation, and we have numerous ways to verify the output of our build system. With that said, Rollup v2 has some great new features that I'm looking forward to trying, such as `output.inlineDynamicImports`.
It appears our closing of this old @renovate PR to update Rollup to v2 caused @renovate to stop opening PRs to update Rollup to any v2.x.y version, so our version of Rollup has been out of date since then: #6033 Though obviously not ideal, this major version lag hasn't been a problem for us because Rollup v1 still works very well, and we use it only to generate CommonJS bundles, which is a relatively stable build target (CommonJS hasn't changed much lately). We rely on other tools like tsc for critical stuff like TypeScript compilation, and we have numerous ways to verify the output of our build system. With that said, Rollup v2 has some great new features that I'm looking forward to trying, such as `output.inlineDynamicImports`.
This PR contains the following updates:
1.31.1
->2.6.1
Release Notes
rollup/rollup
v2.6.1
Compare Source
2020-04-12
Bug Fixes
Pull Requests
v2.6.0
Compare Source
2020-04-10
Features
Pull Requests
v2.5.0
Compare Source
This version is identical to 2.4.0
v2.4.0
Compare Source
2020-04-09
Features
Bug Fixes
this
withundefined
in class field definitions (#3488)Pull Requests
v2.3.5
Compare Source
2020-04-09
Bug Fixes
Pull Requests
v2.3.4
Compare Source
2020-04-07
Bug Fixes
Pull Requests
v2.3.3
Compare Source
2020-04-04
Bug Fixes
Pull Requests
v2.3.2
Compare Source
2020-03-31
Bug Fixes
Pull Requests
v2.3.1
Compare Source
2020-03-30
Bug Fixes
Pull Requests
v2.3.0
Compare Source
2020-03-29
Features
.mjs
extension in Node 13+ or.cjs
extension in any Node version and load them appropriately (#3445)rollup/dist/loadConfigFile
(#3445)Bug Fixes
Pull Requests
v2.2.0
Compare Source
2020-03-24
Features
renderDynamicImport
hook to rewrite dynamic import expressions (#3449)this.getModuleInfo
(#3449)Bug Fixes
.js
extensions from AMD imports when the import is a user-supplied replacement for a non-resolvable dynamic import target (#3453)Pull Requests
v2.1.0
Compare Source
2020-03-18
Features
Pull Requests
importer
parameter tothis.emitFile
(@lukastaegert)v2.0.6
Compare Source
2020-03-13
Bug Fixes
dir
option (#3440)Pull Requests
v2.0.5
Compare Source
2020-03-12
Bug Fixes
Pull Requests
v2.0.4
Compare Source
2020-03-12
Bug Fixes
Pull Requests
index
imports for ES format using nested export star statements (@kamranayub)v2.0.3
Compare Source
2020-03-10
Bug Fixes
Pull Requests
augmentChunkHash
are used (@jakearchibald)v2.0.2
Compare Source
2020-03-07
Bug Fixes
Pull Requests
v2.0.1
Compare Source
2020-03-07
Bug Fixes
Pull Requests
v2.0.0
Compare Source
2020-03-06
Breaking Changes
Rollup now requires at least Node 10 to run, or a sufficiently modern browser (#3346)
The file structure of Rollup's ESM builds has changed:
rollup/dist/es/rollup.js
instead ofrollup/dist/rollup.es.js
rollup/dist/es/rollup.browser.js
instead ofrollup/dist/rollup.browser.es.js
In general, the ESM builds now follow the same naming scheme as the CJS builds but are located in the
rollup/dist/es
subfolder instead ofrollup/dist
(#3391)The "watch.chokidar" option no longer accepts a
boolean
value but only an object of parameters that is passed to the bundled Chokidar instance. Chokidar installations by the user will be ignored in favour of the bundled instance (#3331)Modules that are completely tree-shaken will no longer be listed as part of any chunks in
generateBundle
The
experimentalOptimizeChunks
andchunkGroupingSize
options have been removedacorn plugins can only be used if they accept a passed-in acorn instance instead of importing it themselves. See acornjs/acorn#870 (comment) for what needs to be done to make plugins compatible that do not support this yet (#3391)
Emitted chunks now have the TypeScript type
Uint8Array
instead ofBuffer
. ABuffer
can still be used, though (#3395)The TypeScript types no longer use ESTree types for AST nodes but a very generic type that does not contain information specific to certain node types (#3395)
The signature of the
writeBundle
plugin hook has been changed to matchgenerateBundle
: The bundle object is now passed as second parameter instead of first and the first parameter is the output options (#3361)The following plugin hooks have been removed:
generateBundle
insteadwriteBundle
insteadrenderChunk
insteadrenderChunk
insteadYou can no longer access
this.watcher
on the plugin context.The
transform
hook can no longer returndependencies
.The
treeshake.pureExternalModules
option will now show a deprecation warning when used: usetreeshake.moduleSideEffects: 'no-external'
insteadUsing
import.meta.ROLLUP_ASSET_URL_<..>
andimport.meta.ROLLUP_CHUNK_URL_<..>
in code will now show warnings: useimport.meta.ROLLUP_FILE_URL_<..>
insteadThe
resolveAssetUrl
hook will now show a deprecation warning when used: useresolveFileUrl
insteadThe following plugin context functions will show warnings when used:
this.emitAsset
: usethis.emitFile
this.emitChunk
: usethis.emitFile
this.getAssetFileName
: usethis.getFileName
this.getChunkFileName
: usethis.getFileName
this.isExternal
: usethis.resolve
this.resolveId
: usethis.resolve
Directly adding properties to the bundle object in the
generateBundle
is deprecated will show a warning (removing properties is allowed, though): Usethis.emitFile
Accessing
chunk.isAsset
on the bundle is deprecated: Usechunk.type === 'asset'
insteadThe error code for a missing
name
property when targeting UMD has been changed toMISSING_NAME_OPTION_FOR_IIFE_EXPORT
to emphasize this is needed for the IIFE part of UMD (#3393)Features
import {rollup} from 'rollup'
. Note that this relies on Node's experimental conditional package exports feature and is therefore itself experimental (#3391)systemjs
can be used as format alias forsystem
(#3381)Bug Fixes
Pull Requests
@types
dependencies (@lukastaegert)v1.32.1
Compare Source
2020-03-06
Bug Fixes
Pull Requests
v1.32.0
Compare Source
2020-02-28
Features
--plugin <plugin>
(#3379)Pull Requests
Renovate configuration
📅 Schedule: "every weekend" in timezone America/Los_Angeles.
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.