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 webpack (major) #284

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 22, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
css-loader ^6.8.1 -> ^7.1.2 age adoption passing confidence
postcss-loader ^7.3.3 -> ^8.1.1 age adoption passing confidence
style-loader ^3.3.3 -> ^4.0.0 age adoption passing confidence
webpack-cli (source) ^5.1.4 -> ^6.0.1 age adoption passing confidence
webpack-dev-server ^4.15.1 -> ^5.2.0 age adoption passing confidence

Release Notes

webpack-contrib/css-loader (css-loader)

v7.1.2

Compare Source

v7.1.1

Compare Source

v7.1.0

Compare Source

Features
  • added the getJSON option to output CSS modules mapping (#​1577) (af834b4)

v7.0.0

Compare Source

⚠ BREAKING CHANGES
  • The modules.namedExport option is true by default if you enable the esModule option

Migration guide:

Before:

import style from "./style.css";

console.log(style.myClass);

After:

import * as style from "./style.css";

console.log(style.myClass);
  • The modules.exportLocalsConvention has the value as-is when the modules.namedExport option is true and you don't specify a value
  • Minimum supported webpack version is 5.27.0
  • Minimum supported Node.js version is 18.12.0
Features
  • The modules.namedExports option works fine with any modules.exportLocalsConvention values (f96a110)
  • Added dashed variants for the modules.exportLocalsConvention options (40e1668)

v6.11.0

Compare Source

Features
Bug Fixes

v6.10.0

Compare Source

Features
  • add @rspack/core as an optional peer dependency (#​1568) (3924679)
  • pass the resourceQuery and resourceFragment to the auto and mode callback (#​1569) (d641c4d)
  • support named exports with any characters (6f43929)
6.9.1 (2024-01-18)
Bug Fixes
  • css nesting support
  • @scope at-rule support

v6.9.1

Compare Source

v6.9.0

Compare Source

Features
Bug Fixes
6.8.1 (2023-05-28)
Bug Fixes
webpack-contrib/postcss-loader (postcss-loader)

v8.1.1

Compare Source

v8.1.0

Compare Source

Features

v8.0.0

Compare Source

⚠ BREAKING CHANGES
7.3.4 (2023-12-27)
Bug Fixes
7.3.3 (2023-06-10)
Bug Fixes
  • perf: avoid using klona for postcss options (#​658) (e754c3f)
  • bug with loading configurations after updating cosmiconfig to version 8.2 (684d265)
7.3.2 (2023-05-28)
Bug Fixes
7.3.1 (2023-05-26)
Bug Fixes
  • warning and error serialization (65748ec)

v7.3.4

Compare Source

webpack-contrib/style-loader (style-loader)

v4.0.0

Compare Source

⚠ BREAKING CHANGES
  • minimum supported webpack version is 5.27.0
  • minimum support Node.js version is 18.12.0
  • the insert option can only be a selector or the path to the module

Migration:

Before:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "styleTag",
              styleTagTransform: function (css, style) {
                // Do something ...
                style.innerHTML = `${css}.modify{}\n`;

                document.head.appendChild(style);
              },
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};

After:

insert-function.js

function insert(css, style) {
  var parent = options.target || document.head;

  parent.appendChild(element);
}

module.exports = insert;

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              insert: require.resolve("./insert.js"),
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};
  • the styleTagTransform option can only be the path to the module

Migration:

Before:

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              injectType: "styleTag",
              styleTagTransform: function (css, style) {
                // Do something ...
                style.innerHTML = `${css}.modify{}\n`;

                document.head.appendChild(style);
              },
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};

After:

style-tag-transform-function.js

function styleTagTransform(css, style) {
  // Do something ...
  style.innerHTML = `${css}.modify{}\n`;

  document.head.appendChild(style);
}

module.exports = styleTagTransform;

webpack.config.js

module.exports = {
  module: {
    rules: [
      {
        test: /\.css$/i,
        use: [
          {
            loader: "style-loader",
            options: {
              styleTagTransform: require.resolve("./style-tag-transform-function.js"),
            },
          },
          "css-loader",
        ],
      },
    ],
  },
};
Bug Fixes
3.3.3 (2023-05-19)
Bug Fixes
3.3.2 (2023-03-13)
Bug Fixes
3.3.1 (2021-10-21)
Bug Fixes

v3.3.4

Compare Source

3.3.4 (2024-01-09)
Bug Fixes
webpack/webpack-cli (webpack-cli)

v6.0.1

Compare Source

Bug Fixes

v6.0.0

Compare Source

BREAKING CHANGES
  • the minimum required Node.js version is 18.12.0
  • removed init, loader and plugin commands in favor create-webpack-app
  • dropped support for webpack-dev-server@v4
  • minimum supported webpack version is 5.82.0
Bug Fixes
Features

5.1.4 (2023-06-07)

Bug Fixes
  • multi compiler progress output (f659624)

5.1.3 (2023-06-04)

Bug Fixes

5.1.2 (2023-06-04)

Bug Fixes
  • improve check for custom webpack and webpack-dev-server package existance (0931ab6)
  • improve help for some flags (f468614)
  • improved support for .cts and .mts extensions (a77daf2)

5.1.1 (2023-05-09)

Bug Fixes
webpack/webpack-dev-server (webpack-dev-server)

v5.2.0

Compare Source

Features
  • added getClientEntry and getClientHotEntry methods to get clients entries (dc642a8)
Bug Fixes
  • speed up initial client bundling (145b5d0)

v5.1.0

Compare Source

Features
  • add visual progress indicators (a8f40b7)
  • added the app option to be Function (by default only with connect compatibility frameworks) (3096148)
  • allow the server option to be Function (#​5275) (02a1c6d)
  • http2 support for connect and connect compatibility frameworks which support HTTP2 (#​5267) (6509a3f)
Bug Fixes
5.0.4 (2024-03-19)
Bug Fixes
5.0.3 (2024-03-12)
Bug Fixes
5.0.2 (2024-02-16)
Bug Fixes
5.0.1 (2024-02-13)
Bug Fixes

v5.0.4

Compare Source

v5.0.3

Compare Source

v5.0.2

Compare Source

v5.0.1

Compare Source

v5.0.0

Compare Source

Migration Guide and Changes.

4.15.1 (2023-06-09)
Bug Fixes

v4.15.2

Compare Source

4.15.2 (2024-03-20)
Bug Fixes
  • security: bump webpack-dev-middleware (4116209)

Configuration

📅 Schedule: Branch creation - "before 8am on monday" in timezone America/Los_Angeles, Automerge - 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/major-webpack branch from 6c89b64 to 83a1b14 Compare January 30, 2024 20:13
@renovate renovate bot changed the title chore(deps): update dependency postcss-loader to v8 chore(deps): update webpack (major) Feb 12, 2024
@renovate renovate bot force-pushed the renovate/major-webpack branch 3 times, most recently from 517a819 to a56ca11 Compare February 16, 2024 13:04
@renovate renovate bot force-pushed the renovate/major-webpack branch from a56ca11 to e68f7e7 Compare February 28, 2024 12:24
@renovate renovate bot force-pushed the renovate/major-webpack branch from e68f7e7 to fa36e73 Compare March 12, 2024 15:25
@renovate renovate bot force-pushed the renovate/major-webpack branch from fa36e73 to eec213c Compare March 19, 2024 22:27
@renovate renovate bot force-pushed the renovate/major-webpack branch 4 times, most recently from 855ba28 to 25b62aa Compare April 10, 2024 15:41
@renovate renovate bot force-pushed the renovate/major-webpack branch from 25b62aa to a79f90c Compare May 22, 2024 15:55
@renovate renovate bot force-pushed the renovate/major-webpack branch from a79f90c to 3538afe Compare September 3, 2024 18:53
@renovate renovate bot force-pushed the renovate/major-webpack branch from 3538afe to 02753e2 Compare December 11, 2024 14:35
@renovate renovate bot force-pushed the renovate/major-webpack branch from 02753e2 to 4a774a5 Compare December 19, 2024 17:03
@renovate renovate bot force-pushed the renovate/major-webpack branch from 4a774a5 to e75b408 Compare December 20, 2024 16:43
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.

0 participants