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

WIP: Webpack 5 upgrade #1996

Merged
merged 56 commits into from Sep 5, 2022
Merged

Commits on Apr 19, 2022

  1. Copy the full SHA
    7f74a5a View commit details
    Browse the repository at this point in the history
  2. Update webpack-dev-server config

    Thomas Roest committed Apr 19, 2022
    Copy the full SHA
    5814101 View commit details
    Browse the repository at this point in the history

Commits on May 17, 2022

  1. dev property added by npm

    Thomas Roest committed May 17, 2022
    Copy the full SHA
    117c87f View commit details
    Browse the repository at this point in the history
  2. Update import and remove check for errors.length

    The validate function no longer returns an array with errors, but just throws errors for invalid configs
    Thomas Roest committed May 17, 2022
    Copy the full SHA
    0725c02 View commit details
    Browse the repository at this point in the history

Commits on May 30, 2022

  1. Update styleguidist options plugin test to be compatible with webpack 5

    The previous implementation resulted in the following error
    `TypeError: The 'compilation' argument must be an instance of Compilation`
    
    Instead of using a plain obj mock, use jest.mock to mock webpack.
    Thomas Roest committed May 30, 2022
    Copy the full SHA
    907fae4 View commit details
    Browse the repository at this point in the history

Commits on Jun 9, 2022

  1. Copy the full SHA
    021435f View commit details
    Browse the repository at this point in the history

Commits on Jun 29, 2022

  1. Copy the full SHA
    1701b39 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #1 from aboks/webpack-5-upgrade

    merge commits Arnout
    ThomasRoest committed Jun 29, 2022
    Copy the full SHA
    4fa2d94 View commit details
    Browse the repository at this point in the history
  3. fix: TypeScript errors in StyleguidistOptionsPlugin

    Also removed Webpack 4 support.
    aboks committed Jun 29, 2022
    Copy the full SHA
    32b8df7 View commit details
    Browse the repository at this point in the history
  4. update style & css-loader

    Thomas Roest committed Jun 29, 2022
    Copy the full SHA
    5ddd548 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #2 from aboks/webpack-5-upgrade

    fix: TypeScript errors in StyleguidistOptionsPlugin
    ThomasRoest committed Jun 29, 2022
    Copy the full SHA
    ef020f2 View commit details
    Browse the repository at this point in the history
  6. update file-loader

    Thomas Roest committed Jun 29, 2022
    Copy the full SHA
    707465e View commit details
    Browse the repository at this point in the history
  7. update url-loader

    Thomas Roest committed Jun 29, 2022
    Copy the full SHA
    17eae0f View commit details
    Browse the repository at this point in the history
  8. Run npm install ( update package.lock ) with newer npm version (8.13.1)

    This fixes build error / failing npm ci command:
    `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing
    Thomas Roest committed Jun 29, 2022
    Copy the full SHA
    bdccf25 View commit details
    Browse the repository at this point in the history
  9. upgrade webpack dev-server to latest

    Thomas Roest committed Jun 29, 2022
    Copy the full SHA
    70ce0a0 View commit details
    Browse the repository at this point in the history

Commits on Jun 30, 2022

  1. upgrade typescript to latest version

    Thomas Roest committed Jun 30, 2022
    Copy the full SHA
    0d0dfdc View commit details
    Browse the repository at this point in the history
  2. fix type errors

    Thomas Roest committed Jun 30, 2022
    Copy the full SHA
    069fea4 View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. upgrade jss to fix type errors

    Thomas Roest committed Jul 6, 2022
    Copy the full SHA
    d9c9045 View commit details
    Browse the repository at this point in the history
  2. remove non-existing Output type

    Thomas Roest committed Jul 6, 2022
    Copy the full SHA
    567605d View commit details
    Browse the repository at this point in the history
  3. replace loader context type

    Thomas Roest committed Jul 6, 2022
    Copy the full SHA
    be2e1ec View commit details
    Browse the repository at this point in the history
  4. change unknown to any

    Thomas Roest committed Jul 6, 2022
    Copy the full SHA
    bfe576f View commit details
    Browse the repository at this point in the history
  5. upgrade jss plugins

    Thomas Roest committed Jul 6, 2022
    Copy the full SHA
    b9d1867 View commit details
    Browse the repository at this point in the history
  6. upgrade babel preset typescript & preset-react

    Thomas Roest committed Jul 6, 2022
    Copy the full SHA
    8daa5db View commit details
    Browse the repository at this point in the history
  7. add missing style return types

    Thomas Roest committed Jul 6, 2022
    Copy the full SHA
    e9f24c8 View commit details
    Browse the repository at this point in the history

Commits on Jul 7, 2022

  1. Copy the full SHA
    894183b View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    7919bbc View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    98d8a86 View commit details
    Browse the repository at this point in the history
  4. upgrade prop-types

    Thomas Roest committed Jul 7, 2022
    Copy the full SHA
    676eea2 View commit details
    Browse the repository at this point in the history
  5. fix type errors

    Thomas Roest committed Jul 7, 2022
    Copy the full SHA
    9dc5498 View commit details
    Browse the repository at this point in the history
  6. Copy the full SHA
    bb95ce6 View commit details
    Browse the repository at this point in the history
  7. replace missing type

    Thomas Roest committed Jul 7, 2022
    Copy the full SHA
    bb2af3a View commit details
    Browse the repository at this point in the history
  8. add skipLibCheck option to skip TS errors in node_modules definition …

    …files
    Thomas Roest committed Jul 7, 2022
    Copy the full SHA
    f0ace6e View commit details
    Browse the repository at this point in the history
  9. update terser-webpack-plugin

    Thomas Roest committed Jul 7, 2022
    Copy the full SHA
    27acbf4 View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2022

  1. remove incorrect type

    Thomas Roest committed Jul 13, 2022
    Copy the full SHA
    9a31c6e View commit details
    Browse the repository at this point in the history

Commits on Jul 14, 2022

  1. Merge pull request #3 from aboks/webpack-5-upgrade

    update test apps package.json
    ThomasRoest committed Jul 14, 2022
    Copy the full SHA
    e2ae58f View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2022

  1. Copy the full SHA
    8f1879e View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    b5ee9ad View commit details
    Browse the repository at this point in the history
  3. chore: remove loader-utils

    This package is not used anymore. Only examples-loader used
    a method that has been removed in the latest loader-utils
    version, but we rewrote that using standard Webpack 5 features.
    aboks committed Jul 20, 2022
    Copy the full SHA
    16eba76 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2022

  1. Merge pull request #4 from aboks/webpack-5-upgrade

    Webpack 5 upgrade
    ThomasRoest committed Jul 22, 2022
    Copy the full SHA
    36ab51c View commit details
    Browse the repository at this point in the history
  2. chore: upgrade clean-webpack-plugin

    Thomas Roest committed Jul 22, 2022
    Copy the full SHA
    3404adc View commit details
    Browse the repository at this point in the history
  3. chore: update copy-webpack-plugin

    Thomas Roest committed Jul 22, 2022
    Copy the full SHA
    d240483 View commit details
    Browse the repository at this point in the history

Commits on Jul 24, 2022

  1. fix: fix type error

    Thomas Roest committed Jul 24, 2022
    Copy the full SHA
    17a964a View commit details
    Browse the repository at this point in the history

Commits on Aug 4, 2022

  1. Copy the full SHA
    dba2414 View commit details
    Browse the repository at this point in the history
  2. chore: ignore 'impossible' situation in test coverage

    There are almost no situations in which ReactDOM.render throws a synchronous
    error. The only one currently is when the provided container is not a DOM
    node, but that situation is impossible to cover in a test. It seems fine
    to keep the catch clause here for when ReactDOM.render possibly changes in
    the future, but we should ignore it w.r.t. test coverage.
    aboks committed Aug 4, 2022
    Copy the full SHA
    5e73d9f View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2022

  1. Merge pull request #5 from aboks/webpack-5-upgrade

    merge codecov fixes
    ThomasRoest committed Aug 10, 2022
    Copy the full SHA
    2c78af7 View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5deb266 View commit details
    Browse the repository at this point in the history
  3. Copy the full SHA
    484c144 View commit details
    Browse the repository at this point in the history
  4. fix: add correct webpack plugin types

    Thomas Roest committed Aug 10, 2022
    Copy the full SHA
    a949222 View commit details
    Browse the repository at this point in the history
  5. Remove tapable from package.json

    It was only used for a few webpack plugin types that have been replaced in #a949222
    Thomas Roest committed Aug 10, 2022
    Copy the full SHA
    3e79364 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2022

  1. Copy the full SHA
    23df966 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2022

  1. Copy the full SHA
    2049726 View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2022

  1. fix: replace type assertion

    Thomas Roest committed Aug 17, 2022
    Copy the full SHA
    3e2abcd View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2022

  1. Copy the full SHA
    e2019f3 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2022

  1. fix: fix/replace newly added any types

    Thomas Roest committed Aug 19, 2022
    Copy the full SHA
    add7404 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2022

  1. Fix: fix eslint no-shadow rule warnings

    Eslint no-shadow https://eslint.org/docs/latest/rules/no-shadow
    
    Disallow variable declarations from shadowing variables declared in the outer scope
    Thomas Roest committed Aug 22, 2022
    Copy the full SHA
    9450519 View commit details
    Browse the repository at this point in the history
  2. fix: fix eslint-no shadow warning

    Thomas Roest committed Aug 22, 2022
    Copy the full SHA
    cd02637 View commit details
    Browse the repository at this point in the history