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 v2 #6033

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 8, 2020

This PR contains the following updates:

Package Type Update Change
rollup (source) devDependencies major 1.31.1 -> 2.6.1

Release Notes

rollup/rollup

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

v1.32.1

Compare Source

2020-03-06

Bug Fixes
  • Handle default export detection for AMD and IIFE externals that do not have a prototype (#​3420)
  • Handle missing whitespace when the else branch of an if-statement is simplified (#​3421)
  • Mention the importing module when reporting errors for missing named exports (#​3401)
  • Add code to warning for missing output.name of IIFE bundles (#​3372)
Pull Requests

v1.32.0

Compare Source

2020-02-28

Features
  • Allow adding plugins on the command line via --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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@codecov
Copy link

codecov bot commented Mar 14, 2020

Codecov Report

Merging #6033 into master will not change coverage by %.
The diff coverage is n/a.

Impacted file tree graph

@@           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.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6b9fdfb...8b0f9df. Read the comment docs.

@renovate renovate bot force-pushed the renovate/rollup-2.x branch 4 times, most recently from 15cbe17 to cd98e6c Compare March 28, 2020 07:46
@renovate renovate bot force-pushed the renovate/rollup-2.x branch 5 times, most recently from daa7b58 to 12ef1db Compare April 5, 2020 19:33
@renovate renovate bot force-pushed the renovate/rollup-2.x branch 4 times, most recently from a1d1a5a to 8b0f9df Compare April 12, 2020 21:47
@renovate renovate bot force-pushed the renovate/rollup-2.x branch 4 times, most recently from f3eaf40 to 5aa09ed Compare April 18, 2020 18:32
@renovate
Copy link
Contributor Author

renovate bot commented Apr 23, 2020

Renovate Ignore Notification

As 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.

@renovate renovate bot deleted the renovate/rollup-2.x branch April 23, 2020 17:29
benjamn added a commit that referenced this pull request Jun 1, 2021
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`.
benjamn added a commit that referenced this pull request Jun 1, 2021
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`.
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 16, 2023
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.

None yet

2 participants