github single-spa/single-spa v5.5.2

latest releases: v6.0.1, v6.0.0, v6.0.0-beta.4...
3 years ago

Fixes

  • Small ie11 fixes, and adding lint safe guards for ie11 (#559 via @Sauloxd)
  • fix(activeWhen): activeWhen with string literal should be exact match (#565 via @kuitos)
import { registerApplication, checkActivityFunctions } from 'single-spa'

registerApplication({
  name: "app1",
  app: () => System.import('app1'),
  activeWhen: '/app1'
})

// Both 5.5.1 and 5.5.2
checkActivityFunctions(new URL('http://localhost:8080/app1')) // ['app1']
checkActivityFunctions(new URL('http://localhost:8080/app1/sub')) // ['app1']

// With 5.5.1, single-spa did not require the location to have a slash after the prefix
checkActivityFunctions(new URL('http://localhost:8080/app1WithExtra')) // ['app1']

// Changed with 5.5.2 - single-spa now requires the location to have a slash after the prefix
checkActivityFunctions(new URL('http://localhost:8080/app1WithExtra')) // []

Maintenance

Don't miss a new single-spa release

NewReleases is sending notifications on new releases.