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

⬆️ Update dependency webpack to v5 #555

Closed
wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 10, 2020

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
webpack 4.44.2 -> 5.18.0 age adoption passing confidence

⚠️ MAJOR MAJOR MAJOR ⚠️


Release Notes

webpack/webpack

v5.18.0

Compare Source

Internals

  • refactor hashing to move the responsibility of hashing module exports info and referenced modules from Dependencies to the Module
    • Hashing in Dependencies can be much cheaper now (could improve performance when many dependencies are used that point to the same module, like many references to React.createElement)
    • Fixes bugs where Dependencies forgot to hash some details about the referenced module
    • The new model elimiates the potential of such bugs are Dependencies have less responsibilities now

v5.17.0

Compare Source

Features

  • add experimental lazy compilation via experiments.lazyCompilation: true for web and node targets
    • compiles entrypoints and import()s only when they are accessed
    • More details see: #​12469
    • Known issues: webpack-dev-server/webpack serve opening an entrypoint for the first time, sometimes need a manual refresh.
  • move some javascript parsing related configuration options from module to module.parser.javascript and also allow to set them via module.rules
  • add module.parser.javascript.commonjsMagicComments to enable /* webpackIgnore: true */ for require() calls

Bugfixes

  • fix a problem with webpack.debug.ProfilingPlugin on Mac when the computer was suspended before.
  • fix a bug with IIFE handling when the IIFE has parameters with default values

v5.16.0

Compare Source

Features

  • add __webpack_is_included__("./some-module") which returns true when the module is bundled and false when not
  • priorize eager shared modules over normal shared modules (with the same version), as they are loaded anyway
  • add library.type: "assign-properties" which merges all exports into a global variable
  • allow optimization.innerGraph for new URL()
    • This allows to detect which URLs are used and drop the module and asset when they are not.

Bugfixes

  • only return exports from runtime when needed
    • This allows to use experiments.outputModule: true with optimization.runtimeChunk
  • fix a bug that splitChunk.reuseExistingChunk doesn't work for entrypoints
    • This optimized an edge case where a nearly empty entrypoint is created when an entrypoint contains only vendor modules

Developer Experience

  • include plugin names in deprecation message for "NormalModuleFactory.xxx is no longer a waterfall hook"
  • improve error message when passing an invalid library name

v5.15.0

Compare Source

Features

  • add getResolve method to data object when using function externals
  • externals function may return a promise now

Bugfixes

  • fix define("local-module", expr) generating invalid syntax
  • fix resolving bug when resolving build dependencies
  • add chunkModulesSpace to schema
  • fix rebuildModule api

Performance

  • improve performance of build dependencies resolving

v5.14.0

Compare Source

Features
  • add experimental ESM tracking for build dependencies
Bugfixes
  • fix crash when calling watcher.getContextTimeInfoEntries()
  • make filesystem types compatible with memfs and real fs
  • fix rebuild error when using the AutomaticPrefetchPlugin
Contribution
  • improve type definitions by using typescript 4.2

v5.13.0

Compare Source

Features

  • add resolve.preferAbsolute flag for compatibility with webpack 4
  • add support for wildcards in exports and imports field
  • improve chunk and module names
    • use nameForCondition() as fallback for module names
    • handle module connection with only transive side effects correctly when determining chunk root modules

v5.12.3

Compare Source

Bugfixes

  • upgrade @webassembly/* and terser-webpack-plugin dependencies

v5.12.2

Compare Source

Bugfixes

  • fix problem with typings in strict mode

v5.12.1

Compare Source

Bugfixes

  • fix a crash in ConcatenatedModule when deserializing
  • fix some not serializable warnings
  • show error when using an invalid identifier as var library

v5.12.0

Compare Source

Features

  • add experiments.layers
    • entry.xxx.layer: "name-of-layer" allows to set the layer for an entrypoint
    • module.rules[].issuerLayer: RuleCondition allows to filter/match by layer of issuer
    • module.rules[].layer: "name-of-layer" allows to set the layer of an module
    • splitChunks.cacheGroups.xxx.layer allows to select modules by layer
    • externals.byLayer["name-of-layer"] allows to specify externals by layer
    • externals.byLayer: (layer) => ... allows to specify externals by layer
    • externals function has an additional argument property contextInfo which contains info about the issuer (e. g. the layer)
  • add module.parser and module.generator options to allow to specify parser/generator options globally per module type
  • make chunkId variable available in script tag hook (like it was with webpack 4)

Bugfixes

  • escape exclamation marks in context regexp when generating readable module names/ids
  • fix a problem when bundling webpack bundles with enabled eval-based devtools
  • add stats.nestedModulesSpace to schema to allow to specify this option
  • fix a bug that incorrectly replaces new.target with constants
  • fix a bug where splitChunk minSize is not handled correctly
  • fix a bug where the order of splitChunk cacheGroups is not handled correctly
  • avoid adding non-filesystem resources as dependencies for watching and caching

Developer experience

  • fix incorrect negation in hint comment for eval-based devtools
  • improve error messages of "Library/Chunk Loading/Wasm Loading typeof is not enabled" errors
  • improve question message when asking to install webpack-cli
  • show a warning when loaders/plugins report invalid dependencies to webpack

Contributing

  • examples use webpack-cli 4 now
  • rename memorize to memoize

v5.11.1

Compare Source

Bugfixes
  • ignore cloned ExportInfo during hashing
    • fixes a problem where changing modules affects hashes in some other part of the application during development
  • fixes compileBooleanMatcher when prefix and suffix overlap
  • fixes invalidate code generated when generating properties access
  • fix object types in typings
  • expose more types regarding Stats

v5.11.0

Compare Source

Features
  • update typings to include undefined/null types (for strict type)
  • export WebpackError
  • export Asset and AssetInfo types
  • allow error configuration for validateSchema function
Bugfixes
  • fix typings for SourceMapSource
  • allow custom properties in AssetInfo
  • handle undefined values for rule conditions like empty strings

v5.10.3

Compare Source

Bugfixes

  • errors in initial cache no longer cause build dependencies to be ignored
  • manual side effects flagging should override automatic analysis
  • modules in dlls without entryOnly will no longer be dropped because of no side effects

v5.10.2

Compare Source

Bugfixes

  • add a few missing node.js libraries as externals in target: "node"
  • improve cache (de)serialization to allow larger cache files (>2GB) and increase performance for them

v5.10.1

Compare Source

Bugfixes

  • avoid duplicating chunk info in chunk loading global
  • allow executing chunks before runtime is loaded
  • avoid error when emitting assets with different query string but identical filename and content
  • fix duplicated asset name in processAssets with additionalAssets
  • add missing \ in module info header comment

v5.10.0

Compare Source

Bugfixes

  • Multiple fixes regarding the side effects optimization ("sideEffects": false) when reexports and concatenated modules are combined

Contributing

  • Typescript major 4
    • Improved internal structure of our typings

Performance

  • output.pathinfo: true (default in development) adds less verbose information (and is faster)
  • output.pathinfo: "verbose" adds more verbose information
  • output.pathinfo: true is cached
  • avoid assets and module stats information generation when they are cached and cached assets/modules are not shown

v5.9.0

Compare Source

Features
  • improve side effects analysis to report imported and reexported symbols as side-effect-free
Bugfixes
  • fix problem when HMR and different runtimes (e. g. with Workers)
    • caused crash with ... has no hash info for runtime ...

v5.8.0

Compare Source

Features

  • add the ability to process assets generated in later stages during processAssets
  • new processAssets stage: PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE
  • add hooks to the RealContentHashPlugin to allow to process custom hashes (e. g. SRI)

Bugfixes

  • fix typing for child compiler plugins
  • SourceMapPlugin will process assets added in later stages during asset processing

v5.7.0

Compare Source

Features

  • CLI supports installing webpack-cli via pnpm

Bugfixes

  • fix problem with ASI detection, causing semicolons inserted after if(...) etc.

v5.6.0

Compare Source

Bugfixes

  • emit warnings/errors for exports in commonjs modules for which we know that they don't exist

v5.5.1

Compare Source

Bugfixes

  • fix crash when __esModule is defined with defineProperty without value

v5.5.0

Compare Source

Bugfixes

  • fix ASI issues that occur between concatenated modules
  • fix incorrect handling of [id] and etc. in SourceMap sources
  • fix side-effect-free handling of exports for concatenated modules that causes an unused export
  • make ESM-CJS interop handling consistent
    • make __esModule flag consistent exposed
    • handle non enumerable exports
    • handle inherited exports
    • handle exported Promises

v5.4.0

Compare Source

Bugfixes

  • fix renaming in super class expression in nested scopes
  • fix parsing and handling of browserlist queries
  • fix a few edge cases with ESM-CJS interop and .mjs
  • fix ASI edge cases

v5.3.2

Compare Source

Bugfixes

  • runtime-dependent concatenated modules can generate code for runtime-dependent execution order of concatenated modules

v5.3.1

Compare Source

Bugfixes

  • fix incorrect concatenation of modules when multiple runtimes are involved
    • fixes a "This should not happen" error
    • fixes a __webpack_require__(null) problem
  • run CLI correctly after installing
  • fixes a huge performance issue when processing minimized code with SourceMap
  • Use string[] types instead of [string, ...string[]] for arrays that must not be empty
    • this is more convinient to use

Performance

  • avoid incorrect store of counts in the ProgressPlugin, which causes unneeded serialization of the Persistent Cache
  • upgrade terser-webpack-plugin for performance improvements
  • upgrade webpack-sources for performance improvements

v5.3.0

Compare Source

Features and Bugfixes

  • generate runtime conditional code when modules are forcefully merged from multiple runtimes
    • This fixes a Cannot read property 'call' of undefined error in webpack runtime, because modules are used that are not in the graph in one runtime
  • disabled source code analysis for side effects in non-production modes
    • this causes unnecessary changes to parent modules in development
    • add optimization.sideEffects: "flag" as option for this

v5.2.1

Compare Source

Bugfixes

  • add watchOptions.followSymlinks option to schema
  • fix hard crash when calling resolve with undefined value
  • fix emit problem when files have hash in query string
  • fix unneeded generation of SourceMaps when no devtool is used
    • fixes a huge performance regression with terser-webpack-plugin

v5.2.0

Compare Source

Features

  • add sourceFilename and javascriptModule to asset info for plugins

Bugfixes

  • fix variable name collision when using module concatenation
  • fix arrow functions in ie 11
  • fix this externals with module concatenation
  • force update for enhanced-resolve for critical bugfixes (see changelog)

v5.1.3

Compare Source

Bugfixes

  • omit unused modules from chunks when modules are only unused in some runtimes
    • fixes Self-reference dependency has unused export name error
  • fix order of asset optimization to fix conflict between compression-plugin and real hash plugin

v5.1.2

Compare Source

Bugfixes

  • revert: omit unused modules from chunk when modules are only unused in some runtimes
    • caused issues with mini-css modules

v5.1.1

Compare Source

Bugfixes

  • fix order of chunk hashing to allow to uses hashes in WebWorkers
  • update to terser-webpack-plugin 5
    • reduces number of dependencies by dropping webpack 4 support
  • omit unused modules from chunk when modules are only unused in some runtimes
    • fixes Self-reference dependency has unused export name error
  • fix hanging production builds because of infinite loop in inner graph optimization
  • Compilation.deleteAsset updates chunk to file mappings

v5.1.0

Compare Source

Features

  • expose webpack property from Compiler
  • expose cleverMerge, EntryOptionPlugin, DynamicEntryPlugin

Bugfixes

  • missing require("..").xxx in try-catch produces a warning instead of an error now
  • handle reexports in concatenated modules correctly when they are side-effect-free
  • fix incorrect deprecation message for ModuleTemplate.hooks.hash

v5.0.0

Compare Source

Announcement and changelog

v4.46.0

Compare Source

Bugfixes
  • fix behavior of defaults for resolve.roots to be backward-compatible

v4.45.0

Compare Source

Features

  • resolve server-relative requests relative to project context by default

Bugfixes

  • fix a bug where splitChunk minSize is not handled correctly
  • fix a bug where the order of splitChunk cacheGroups is not handled correctly

Renovate configuration

📅 Schedule: At any time (no schedule defined).

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

@renovate renovate bot requested a review from tjoskar October 10, 2020 20:42
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 9d3baaa to 14cadd3 Compare October 13, 2020 13:13
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 13, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 14cadd3 to 4179631 Compare October 15, 2020 13:57
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 15, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 15, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 4179631 to 1dcaaf3 Compare October 15, 2020 19:31
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 15, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 16, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 1dcaaf3 to 5afb1eb Compare October 16, 2020 14:57
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 16, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 19, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 19, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 20, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 20, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 21, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 21, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 22, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 22, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 5afb1eb to 601a950 Compare October 22, 2020 17:15
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 22, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 601a950 to 4d74085 Compare October 23, 2020 10:39
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 24, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 24, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 4d74085 to 4029430 Compare October 27, 2020 01:19
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 27, 2020
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 27, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 4029430 to c206700 Compare October 27, 2020 12:04
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Oct 27, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from c1acd02 to ca4cd6d Compare December 17, 2020 16:17
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Dec 17, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from ca4cd6d to 3d1d279 Compare December 28, 2020 19:37
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Dec 28, 2020
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 3d1d279 to 3a1246b Compare January 8, 2021 13:11
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 8, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 3a1246b to 005a7a7 Compare January 8, 2021 15:42
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 8, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 005a7a7 to bc98b56 Compare January 9, 2021 09:40
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 9, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from bc98b56 to 9169239 Compare January 10, 2021 19:24
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 10, 2021
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 11, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 9169239 to 61a6d6a Compare January 11, 2021 23:19
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 11, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 61a6d6a to 6cff31c Compare January 14, 2021 00:21
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 14, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 6cff31c to e6fe413 Compare January 15, 2021 17:23
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 15, 2021
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 19, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch 3 times, most recently from 99f47ef to 50426ec Compare January 22, 2021 14:08
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 22, 2021
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 22, 2021
@renovate renovate bot force-pushed the renovate/webpack-5.x branch from 50426ec to ef19131 Compare January 26, 2021 21:03
@renovate renovate bot changed the title ⬆️ Update dependency webpack to v5 ⬆️ Update dependency webpack to v5 Jan 26, 2021
@tjoskar tjoskar closed this Jan 27, 2021
@renovate renovate bot deleted the renovate/webpack-5.x branch October 1, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants