Skip to content

Releases: single-spa/create-single-spa

v1.18.0

11 Dec 18:15
Compare
Choose a tag to compare

Features

  • Moving public path to a webpack plugin instead of set-public-path.js. You can remove the set-public-path.js file from existing projects. (#223)
  • Adding unsafe-eval to script-src CSP. (#224)
  • Upgrade lib versions (#214)

Fixes

  • fix(generator-single-spa): add missing dependency chalk and ejs (#220)
  • Disable html generation for root configs. Resolves #222. (#227)

Maintenance

v2.0.0-beta.1

04 Dec 18:05
Compare
Choose a tag to compare
v2.0.0-beta.1 Pre-release
Pre-release

Fixes

  • Remove system parser false, as it's the new default in webpack 5. (#221)

v2.0.0-beta.0

30 Nov 02:20
Compare
Choose a tag to compare
v2.0.0-beta.0 Pre-release
Pre-release

Breaking changes

  • webpack-config-single-spa now requires webpack@5, webpack-cli@4, and webpack-dev-server@4. This impacts utility modules, root configs, and react applications/parcels that were generated by create-single-spa. Vue, Angular, and Svelte applications are unaffected.

Migration from v1 to v2

Examples

Steps

  1. Upgrade webpack, webpack-dev-server, webpack-cli
npm install --save-dev webpack@latest webpack-dev-server@next webpack-cli@latest
  1. Find any dependencies in your package.json that start with webpack-config-single-spa or ts-config-single-spa. Upgrade them to the new version.
# DO NOT run all of these in your project. Only run the commands that apply to your project. 

npm install --save-dev webpack-config-single-spa@latest
npm install --save-dev webpack-config-single-spa-ts@latest
npm install --save-dev webpack-config-single-spa-react@latest
npm install --save-dev webpack-config-single-spa-react-ts@latest
npm install --save-dev ts-config-single-spa@latest
  1. Upgrade all webpack loaders and webpack plugins that are dependencies in your package.json. Loaders are dependencies whose names often end with -loader. Plugins are dependencies whose names often include webpack-plugin.

  2. Update your package.json scripts. All instances of webpack-dev-server should be replaced with webpack serve. All instances of --env.thing should be replaced with --env thing. You can remove the =true from any --env parts of webpack commands, as webpack 5 defaults it to true without the =true.

// Old
{
  "scripts": {
    "lint": "eslint src",
    "start": "webpack-dev-server",
    "test": "jest --passWithNoTests",
    "build": "webpack --mode=production",
    "analyze": "webpack --mode=production --env.analyze=true",
    "format": "prettier --write './**'",
    "watch-tests": "jest --watch",
    "coverage": "jest --coverage --passWithNoTests"
  }
}

// New
{
  "scripts": {
    "lint": "eslint src",
    "start": "webpack serve",
    "test": "jest --passWithNoTests",
    "build": "webpack --mode=production",
    "analyze": "webpack --mode=production --env analyze",
    "format": "prettier --write .",
    "watch-tests": "jest --watch",
    "coverage": "jest --coverage --passWithNoTests"
  }
}
  1. Test it out!
npm start
npm run build
npm run analyze

Stuck?

Post in #248, or post in the #general channel in our slack workspace to ask questions.

v1.17.6

27 Nov 19:52
Compare
Choose a tag to compare

Fixes

  • Upgrade @testing-library/react and rollup-plugin-svelte. Resolves #218 (#219)

Maintenance

v1.17.5

27 Nov 19:52
Compare
Choose a tag to compare

Bad publish

This publish didn't work properly - please upgrade to 1.17.6

v1.17.4

30 Oct 17:35
Compare
Choose a tag to compare

Patches

  • add devtoolNamespace to webpack config (#212 via @aurre)

v1.17.3

23 Oct 16:37
Compare
Choose a tag to compare

Fixes

  • Disabling HtmlWebpackPlugin and StandaloneSingleSpaPlugin in prod. (#210 #209)

For existing projects that are upgrading, you'll need to change your webpack config as shown in 1f55f48#diff-2988572da2719e208467808f0450220693dc5e4d409d27b932d6c137ac7ef0e6R4

v1.17.2

22 Oct 14:02
Compare
Choose a tag to compare

Fixes

  • Fix Angular generator paths (#208)
  • Lock create-single-spa to exact generator-single-spa version (#208)

v1.17.1

20 Oct 14:28
Compare
Choose a tag to compare

Fixes

  • Add missing path import in Angular generator (#207)

v1.17.0

19 Oct 23:41
Compare
Choose a tag to compare

Features

Fixes

  • Check that remoteVersion exists before trying versionUpdateCheck (#203)
  • Fix bug in import map poller. (#205)