npm single-spa 5.5.2
v5.5.2

latest releases: 7.0.0-beta.1, 7.0.0-beta.0, 6.0.3...
4 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.