Skip to content

Releases: phBalance/apprun-router

Add query string and dynamic segment support

25 Oct 16:29
Compare
Choose a tag to compare

Query strings and dynamic segments are now supported:

  • If there is no query or dynamic mapping provide empty object rather than undefined. Update documentation to match. b83457b
  • Give query strings a separate section. 43d303d
  • Need to pass query strings along in case of hard reload or history loading. 95b50a0
  • Improvements for new dynamic segement section. 51a9ce4
  • Need to push the original, not the modified, URL for history purposes. f42cab0
  • Update to reflect query string and dynamic segment support. 26102f9
  • Add dynamic path segments and query strings to pretty router. 84e340b

Add tests

  • Add tests for pretty and hash routers although hash has minimal tests. 0bbe831
  • Support tests via jest b45586f

Other improvements

  • const fix 53f0d84
  • Add a couple of new keywords. fce222b
  • Add license badge for fun and no profit. fdd9276
  • Match AppRun's hash router more precisely. c859698
  • Indicate to webpack that there are side effects from this package (modifying global variables). 1e60638
  • npm badge for fun e238518
  • Cast not required. 6f520e2
  • Fix numbering and make rehydration it's own section. fd04172
  • Explicitly mark the package as public. 85321d1
  • Grammar fix db9bedc

Differences: v0.3.0...v0.4.0

v0.3.0

07 Sep 22:25
Compare
Choose a tag to compare
  • Add custom AppRun directive, $prettylink, which eliminates having to add more extensive onclick boilerplate for links that are to be handled by the pretty router.
  • Corresponding documentation update and some clarifications.
  • Update development tools.
  • Remove package vulnerabilities (only in development dependencies so don't worry).
  • Development script updates.

v0.2.1

11 May 15:44
Compare
Choose a tag to compare

Improve typing internally and externally.

v0.2.0

09 Mar 18:54
Compare
Choose a tag to compare

Important Changes

  • Typescript declarations now work correctly.

Smaller Changes

  • Code is now linted with ts-lint.
  • Code is now compiled in strict mode.
  • Added some npm packaging support scripts.

Initial Release

06 Mar 19:07
Compare
Choose a tag to compare

AppRun comes with a default hash link based router. As of AppRun version 1.17.0 and 2.17.0 this router can be replaced and that was the impetus for this package.

Features:

  • A pretty link router (i.e. links with hrefs that start with / rather than #) that can easily be used for your AppRun applications.
  • A hash link router that mimics the default AppRun router.

This release can be found on npm as package apprun-router@0.1.0.