Skip to content

Update dependency rollup to v2 #3388

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

Merged
merged 1 commit into from
Jul 10, 2020
Merged

Update dependency rollup to v2 #3388

merged 1 commit into from
Jul 10, 2020

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 10, 2020

This PR contains the following updates:

Package Type Update Change
rollup (source) devDependencies major 1.32.1 -> 2.21.0

Release Notes

rollup/rollup

v2.21.0

Compare Source

2020-07-07

Features
  • Allow plugins to disable tree-shaking for individual modules to ensure even empty modules are associated with chunks (#​3663)
Pull Requests

v2.20.0

Compare Source

2020-07-06

Features
  • Support using a function to generate different chunk and asset naming patterns per chunk or asset (#​3658)
  • Add referencedFiles property to the chunk info in generateBundle to list referenced assets (#​3661)
Pull Requests

v2.19.0

Compare Source

2020-07-05

Features
  • Allow plugins to return a Promise in the options hook (#​3660)
Pull Requests

v2.18.2

Compare Source

2020-07-02

Bug Fixes
  • Do not remove spread element args when the corresponding positional parameter is unused (#​3652)
Pull Requests

v2.18.1

Compare Source

2020-06-26

Bug Fixes
  • Make sure synthetic exports are present when a module is imported dynamically (#​3648)
  • Strip the rollup-plugin- prefix off the plugin name when looking for the plugin export in a CLI plugin without a default export (#​3647)
  • Convert plugin names with dashes to camel case when looking for the plugin export in a CLI plugin without a default export (#​3647)
Pull Requests
  • #​3647: Strip rollup-plugin prefix to find named plugin exports, throw when export cannot be found (@​lukastaegert)
  • #​3648: Always create a dynamic namespace object when a module with synthetic named exports is imported dynamically (@​lukastaegert)

v2.18.0

Compare Source

2020-06-22

Features
  • inlineDynamicImports, manualChunks and preserveModules can now be used as output options (#​3645)
  • Use sourcemaps for certain warnings that reference source code locations (#​3645)
Bug Fixes
  • this.getFileName will now always return the correct file name for chunks when multiple outputs are created (#​3645)
Pull Requests

v2.17.1

Compare Source

2020-06-19

Bug Fixes
  • Properly resolve accessing properties of namespace members again (#​3643)
Pull Requests

v2.17.0

Compare Source

2020-06-17

Features
  • When importing Rollup via package.exports, always fall back to the browser ESM build for non-Node environments (#​3634)
  • Create more efficient code when handling namespace mutations (#​3637)
Bug Fixes
  • Fix a severe performance regression when the same module is imported by a lot of modules (#​3641)
  • Properly escape special characters in imports (#​3638)
Pull Requests

v2.16.1

Compare Source

2020-06-13

Bug Fixes
  • Do not produce invalid code when an external or chunk id contain quotes or line-breaks (#​3632)
  • Do not fail but emit a warning when mutating a namespace object (#​3633)
Pull Requests

v2.16.0

Compare Source

2020-06-12

Features
  • Add support for numeric separators (#​3626)
  • Switch to finalized ESTree optional chaining AST (#​3628)
Pull Requests

v2.15.0

Compare Source

2020-06-08

Features
  • Allow to skip watching some configs via watch: false (#​3620)
  • Provide the resolved sourcemap path to sourcemapPathTransform (#​3617)
Pull Requests

v2.14.0

Compare Source

2020-06-07

Features
  • Make this.meta.watchMode available for plugins to detect watch mode (#​3616)
Bug Fixes
  • Handle exporting the same binding with different names in SystemJS (#​3575)
Pull Requests

v2.13.1

Compare Source

2020-06-04

Bug Fixes
  • Prevent conflicts in SystemJS when module is used as a top-level variable (#​3614)
Pull Requests

v2.13.0

Compare Source

2020-06-03

Features
  • Allow to specify that an emitted chunk is only loaded after a given module has loaded to improve chunking (#​3606)
Pull Requests

v2.12.1

Compare Source

2020-06-02

Bug Fixes
  • Render valid imports when chunk names correspond to directory names in virtual setups (#​3609)
Pull Requests
  • #​3609: Handle imports from chunks with names that correspond to parent directory names of other chunks (@​guybedford)

v2.12.0

Compare Source

2020-05-31

Features
  • Add an option --waitForBundleInput to let the build wait until all entry point files are available before starting (#​3577)
Pull Requests

v2.11.2

Compare Source

2020-05-28

Bug Fixes
  • Include side-effects in the second argument of Array.from (#​3604)
Pull Requests

v2.11.1

Compare Source

2020-05-28

Bug Fixes
  • Also include side-effects in files that are marked as side-effect-free if they contain an included default export that is reexported (#​3602)
Pull Requests
  • #​3602: Handle side-effects next to side-effect-free default exports in case the default export is reexported (@​lukastaegert)

v2.11.0

Compare Source

2020-05-27

Features
  • Add basic support for optional chaining (#​3582)
  • Provide a normalized set of options with proper default values to buildStart and renderStart (#​3597)
  • Do not count adding properties to the prototype of an unused class as a side-effect (#​3598)
  • Support providing null for empty setters in SystemJS via option (#​3592)
Bug Fixes
  • Do not fail when using a /*#__PURE__*/ annotation inside a class field (#​3599)
  • Allow using --watch and --treeshake together with sub-options such as --watch.clearScreen on the command line (#​3597)
Pull Requests

v2.10.9

Compare Source

2020-05-24

Bug Fixes
  • Prevent invalid exports when facades are created (#​3590)
Pull Requests
  • #​3590: Prevent unneeded exports when entry facades are created and ensure all exported variables in facades are imported (@​lukastaegert)

v2.10.8

Compare Source

2020-05-23

Bug Fixes
  • Fix issues when synthetic named exports are reexported as default exports (#​3586)
Pull Requests

v2.10.7

Compare Source

2020-05-22

Bug Fixes
  • Handle modules re-exporting namespaces without further own code (#​3576)
Pull Requests

v2.10.6

Compare Source

2020-05-22

Bug Fixes
  • Fix some issues around class fields (#​3580)
  • Prevent a maximum call stack error when a called entity references itself in its declaration (#​3581)
Pull Requests

v2.10.5

Compare Source

2020-05-19

Bug Fixes
  • Do not remove side-effects that may influence an included default export declaration when side-effects are disabled (#​3572)
Pull Requests
  • #​3572: Observe side-effects in files containing a default export declaration that reexports a variable (@​lukastaegert)

v2.10.4

Compare Source

2020-05-19

Bug Fixes
  • Tree-shake unused classes with fields unless there are side-effects in the field declaration (#​3569)
Pull Requests

v2.10.3

Compare Source

2020-05-18

Bug Fixes
  • Validate return value of sourcemapPathTransform option (#​3561)
Pull Requests

v2.10.2

Compare Source

2020-05-15

Bug Fixes
  • Properly include calls to mutating array methods in certain scenarios (#​3559)
Pull Requests
  • #​3559: Make sure UnknownFooExpressions are included when referenced as return values in a MultiExpression (@​lukastaegert)

v2.10.1

Compare Source

2020-05-15

Bug Fixes
  • Do not throw when "undefined" is used as a default export (#​3558)
Pull Requests

v2.10.0

Compare Source

2020-05-13

Features
  • Avoid unnecessary empty imports from a facade chunk to the original chunk (#​3552)
  • Pin facade creation order so that if several user-defined chunks reference the same module, the first always becomes the "actual" chunk while the later ones become facades (#​3552)
Bug Fixes
  • Do not omit reexports from secondary chunks when creating facades for entry points without hoisting transitive dependencies (#​3552)
Pull Requests

v2.9.1

Compare Source

2020-05-11

Bug Fixes
  • Do not create unintended live-bindings or invalid reexports when reexporting global variables (#​3550)
Pull Requests

v2.9.0

Compare Source

2020-05-10

Features
  • Add ids of static and dynamic imports to this.getModuleInfo (#​3542)
  • Provide getModuleInfo and getModuleIds to manualChunks functions (#​3542)
  • Add nullish coalescing support (#​3548)
  • Make the rebuild delay in watch mode configurable and set the default to 0 for snappy rebuilds (#​3502)
  • Add this.getModuleIds to the plugin context as future replacement for this.moduleIds (#​3542)
Pull Requests

v2.8.2

Compare Source

2020-05-07

Bug Fixes
  • Avoid invalid code when simplifying the body of a shorthand arrow function expression (#​3540)
Pull Requests
  • #​3540: Wrap object expressions in parentheses if they become children of an arrow function expression (@​lukastaegert)

v2.8.1

Compare Source

2020-05-07

Bug Fixes
  • Allow using plugins on CLI that are exported as exports.default (#​3529)
  • Do not fail side-effect detection in nested callbacks of builtins (#​3539)
Pull Requests

v2.8.0

Compare Source

2020-05-06

Features
  • When a dynamically imported chunk contains more exports than the imported module namespace, do not create a facade chunk but an inline namespace (#​3535)
Bug Fixes
  • Do not execute dynamically imported code before synchronous code in the importing module when generating CommonJS (#​3535)
Pull Requests

v2.7.6

Compare Source

2020-04-30

Bug Fixes
  • Fix a type issue when a default export references a global variable (#​3526)
Pull Requests

v2.7.5

Compare Source

2020-04-29

Bug Fixes
  • Prevent infinite loop when default values of function parameters in a default export contain a slash (#​3522)
Pull Requests

v2.7.4

Compare Source

2020-04-29

Bug Fixes
  • Fix an issue where wrong variable names were used when preserving modules (#​3521)
Pull Requests

v2.7.3

Compare Source

2020-04-27

Bug Fixes
  • Do not access __proto__ when running Rollup (#​3518)
Pull Requests

v2.7.2

Compare Source

2020-04-22

Bug Fixes
  • Prevent an infinite loop when creating separate manual chunks with circular dependencies (#​3510)
  • Do not fail if "super" is used in the definition of a class field (#​3511)
  • Throw if a plugin tries to emit a file with an absolute Windows path (#​3509)
Pull Requests

v2.7.1

Compare Source

2020-04-21

Bug Fixes
  • Use correct path for dynamic imports if output.paths is used (#​3508)
Pull Requests

v2.7.0

Compare Source

2020-04-21

Features
  • Add preserveEntrySignatures option to control how exports of entry points are handled (#​3498)
  • Add preserveSignature flag to this.emitFile to control exports of emitted chunks (#​3498)
  • Add output.minifyInternalExports option to control if internal exports are minified (#​3498)
Pull Requests

v2.6.1

Compare Source

2020-04-12

Bug Fixes
  • Close watch mode when stdin closes in a non-TTY environment (#​3493)
Pull Requests

v2.6.0

Compare Source

2020-04-10

Features
  • Allow regular expressions to declare external modules (#​3482)
Pull Requests

v2.5.0

Compare Source

This version is identical to 2.4.0

v2.4.0

Compare Source

2020-04-09

Features
  • Add support for most private and public class field features (#​3488)
Bug Fixes
  • Do not replace this with undefined in class field definitions (#​3488)
Pull Requests

v2.3.5

Compare Source

2020-04-09

Bug Fixes
  • Never remove labels when tree-shaking is disabled (#​3492)
Pull Requests
  • #​3492: Always use a new inclusion context when including declarations of variables, always inlcude labels when not treeshaking (@​lukastaegert)

v2.3.4

Compare Source

2020-04-07

Bug Fixes
  • Handle re-exporting synthetic exports from entry-points (#​3319)
  • Fix cross-chunk imports of synthetic exports (#​3319)
  • Handle namespace objects that contain re-exported synthetic namespaces (#​3319)
Pull Requests

v2.3.3

Compare Source

2020-04-04

Bug Fixes
  • Add external namespaces to dynamic namespace objects (#​3474)
Pull Requests

v2.3.2

Compare Source

2020-03-31

Bug Fixes
  • Only warn but do not fail build when a namespace is called as a function (#​3475)
  • Make sure pre-existing sourcemap comments are also removed when rebuilding using the cache (#​3476)
Pull Requests

v2.3.1

Compare Source

2020-03-30

Bug Fixes
  • Do not fail if the config file returns an function returning a Promise (#​3472)
Pull Requests

v2.3.0

Compare Source

2020-03-29

Features
  • Do not transpile config files with .mjs extension in Node 13+ or .cjs extension in any Node version and load them appropriately (#​3445)
  • Extract helper to load a config file the way rollup does it via rollup/dist/loadConfigFile (#​3445)
Bug Fixes
  • Keep watching the config file if an error occurs during initial load in watch node (#​3445)
  • Add a helpful error message when using a transpiled config in a repository with "type": "module" (#​3445)
Pull Requests

v2.2.0

Compare Source

2020-03-24

Features
  • Add renderDynamicImport hook to rewrite dynamic import expressions (#​3449)
  • Add information about dynamically imported modules to this.getModuleInfo (#​3449)
Bug Fixes
  • Make file emission work with Uin8Array sources when using Rollup in the browser (#​3452)
  • Fix types to allow watch to accept an array of configs (#​3453)
  • Do not strip .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
  • Allow specifying an importer when emitting files to resolve relative ids (#​3442)
Pull Requests

v2.0.6

Compare Source

2020-03-13

Bug Fixes
  • Do not use file names from different outputs when generating sourcemaps using the dir option (#​3440)
Pull Requests

v2.0.5

Compare Source

2020-03-12

Bug Fixes
  • Fix an issue where conditional statements would assume they have the wrong test value (#​3438)
Pull Requests

v2.0.4

Compare Source

2020-03-12

Bug Fixes
  • Avoid conflicts between namespace imports when preserving modules (#​3435)
Pull Requests
  • #​3435: Deconflict multiple index imports for ES format using nested export star statements (@​kamranayub)

v2.0.3

Compare Source

2020-03-10

Bug Fixes
  • Add type for this.getCombinedSourcemap to transform context (#​3431)
Pull Requests

v2.0.2

Compare Source

2020-03-07

Bug Fixes
  • Make sure the ESM import still works (#​3430)
Pull Requests

v2.0.1

Compare Source

2020-03-07

Bug Fixes
  • Reenable importing rollup in Node 13.0 - 13.7 (#​3428)
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:

    • The main ESM entry point is now at rollup/dist/es/rollup.js instead of rollup/dist/rollup.es.js
    • The ESM browser build is at rollup/dist/es/rollup.browser.js instead of rollup/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 of rollup/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 and chunkGroupingSize options have been removed

  • acorn 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 of Buffer. A Buffer 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 match generateBundle: 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:

    • ongenerate: use generateBundle instead
    • onwrite: use writeBundle instead
    • transformBundle: use renderChunk instead
    • transformChunk: use renderChunk instead
  • You can no longer access this.watcher on the plugin context.

  • The transform hook can no longer return dependencies.

  • The treeshake.pureExternalModules option will now show a deprecation warning when used: use treeshake.moduleSideEffects: 'no-external' instead

  • Using import.meta.ROLLUP_ASSET_URL_<..> and import.meta.ROLLUP_CHUNK_URL_<..> in code will now show warnings: use import.meta.ROLLUP_FILE_URL_<..> instead

  • The resolveAssetUrl hook will now show a deprecation warning when used: use resolveFileUrl instead

  • The following plugin context functions will show warnings when used:

    • this.emitAsset: use this.emitFile
    • this.emitChunk: use this.emitFile
    • this.getAssetFileName: use this.getFileName
    • this.getChunkFileName: use this.getFileName
    • this.isExternal: use this.resolve
    • this.resolveId: use this.resolve
  • Directly adding properties to the bundle object in the generateBundle is deprecated will show a warning (removing properties is allowed, though): Use this.emitFile

  • Accessing chunk.isAsset on the bundle is deprecated: Use chunk.type === 'asset' instead

  • The error code for a missing name property when targeting UMD has been changed to MISSING_NAME_OPTION_FOR_IIFE_EXPORT to emphasize this is needed for the IIFE part of UMD (#​3393)

Features
  • Rollup now bundles Chokidar for a better watch experience (#​3331)
  • Rollup now bundles acorn again, removing its only external dependency (#​3391)
  • Do not consider empty imports from side-effect-free modules for chunking and hoist side-effect imports if necessary (#​3369)
  • Rollup can now be imported as an ES module in Node via 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 for system (#​3381)
Bug Fixes
  • Unknown output options now trigger a warning when using the JavaScript API (#​3352)
  • Rollup will no longer introduce Node types into TypeScript projects that do not use them (#​3395)
  • Generate correct sourcemaps when tree-shaking occurs in a multi-file bundle (#​3423)
Pull Requests

Renovate configuration

📅 Schedule: "before 3am on Friday" (UTC).

🚦 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 WhiteSource Renovate. View repository job log here.

@changeset-bot
Copy link

changeset-bot bot commented Jul 10, 2020

💥 No Changeset

Latest commit: e0bdcc6

Merging this PR will not cause any packages to be released. If these changes should not cause updates to packages in this repo, this is fine 🙂

If these changes should be published to npm, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jul 10, 2020

Binary Size Report

Affected SDKs

No changes between base commit (31cb0f1) and head commit (3cd17d7).

Test Logs

@renovate renovate bot force-pushed the renovate/rollup-2.x branch from 1c2ce56 to e0bdcc6 Compare July 10, 2020 03:13
@Feiyang1 Feiyang1 merged commit b07f822 into master Jul 10, 2020
@Feiyang1 Feiyang1 deleted the renovate/rollup-2.x branch July 10, 2020 17:24
@firebase firebase locked and limited conversation to collaborators Aug 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants