Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 16 Sep 20:24
· 70 commits to main since this release
5195bed

2.0.0 (2021-09-16)

Bug Fixes

  • add export for Link from index (87b8c9a)
  • cjs build write index after esbuild (cc3e672)
  • do not throw on bad preloadCode or warmRoute call (1d5a661)
  • encodeURIComponent search query values in sortAndStringifySearchParameters (0da0cb5)
  • history navigate location hash/search reset (96bacb8)
  • patch createHref with own stub (981d80f)
  • stringify search params joiner (82f6383)
  • stub history createHref push and replace (dd73957)
  • routesToEntryMap: only pass redirectRules to children from parent route (3bc0e32)

chore

  • change package version to 2.0.0 (5aeae0e)

Features

  • add logger (5f11fbc)
  • add Redirect compatibility component (efd6952)
  • add rendererInitialized to context (35e83cb)
  • add RouteProps type and export types from index (58bdb88)
  • add RouteRenderer (657c38a)
  • add routeWrapper prop to RouteRenderer (d4f709c)
  • add state support on Link and Redirect (11022a5)
  • add SuspenseResource (e1501ef)
  • add transition completion callback and subscription (1f3e049)
  • add useRouteProps hook (1293ab6)
  • add useToggleBlock hook (027db47)
  • adjust preload typing (d255812)
  • displayName and expose history listen (7eb8b53)
  • do not combine named and search params (f91920f)
  • do not overwrite history by object spread (0e1533c)
  • exact match query string sorting in locationsMatch (53c0571)
  • export useRouteProps hook (294c721)
  • expose getCurrentRouteKey (92e927e)
  • fix cjs build React reference (1b571f2)
  • init createRouter utils, context, provider, and hooks (baa4106)
  • logger level static string keys (866014f)
  • remove tsdx dependency (16a7771)
  • rename useToggleBlock to useBlockTransition (5442f35)
  • route params are singular, not aggregate values (a784a10)
  • router subscribe options argument (c481404)
  • routeTransitionCompleted location argument (474e88e)
  • swap back to history v4 (b96b4a2)
  • swap back to new jsx transform (2223dd3)
  • transition complete callback history update arg (5512717)
  • use useTransition or shim (43255b4)
  • Link: add Link component (d498166)
  • utils: aggregateKeyValues (05da34b)
  • utils: getCanonicalPath and sortAndStringifyRequestParameters (5d0e852)
  • utils: parametersStringToObject (c73f2a3)
  • utils: prepareMatch and associates (18e95f4)
  • utils: routesToEntryMap (331d679)

BREAKING CHANGES

  • In order to have no confusion to the old yarr package
    previously published. Bumping to v2.0.0 allows users to understand this
    package is not the previous one. Also v2 aligns better with the overall
    iteration of this router from usage inside the Contra codebase.