Navaid Versions Save

A navigation aid (aka, router) for the browser in 850 bytes~!

v1.2.0

3 years ago

Features

  • Add TypeScript definitions: 8118eb2

v1.0.4

4 years ago

Patches

  • Prevent memory leak from multiple wrap calls (#8): 0f5b5bb
  • Ignore query string (location.search) during $.run call: (#9): 1062d25

Chores

  • (Golf) Remove off variable for larger gzip reuse: 77fa92d
  • (Golf) Write fn handlers directly into route objects: 11a5f29
  • (Test) Assert $.run ignores query string values (#9): e7aa014
  • (Docs) Update size: fda2f4e

v1.0.2

5 years ago

Patches

  • Ensure $.run retained uri value formatting: fedd136

Chores

  • Update size: cb3ad14

v1.0.1

5 years ago

Features

  • With the latest version of regexparam, Navaid can now support suffix matches

     // Examples from "regexparam"
    // All patterns are now valid within Navaid~!
    
     let now = regexparam('/movies/:title.(mp4|mov)');
    
     exec('/movies/narnia.mp4', now);
     //=> { title: 'narnia' }
    
     exec('/movies/narnia.mov', now);
     //=> { title: 'narnia' }
    
     exec('/movies/narnia.wav', now);
     //=> {}  (no match)
    

Patches

  • Ignore/Release links to different host targets (#3): b4561f9
  • Refactor: Ignore unnecessary looping inside $.run: f1291ad
  • Gold: Shave 7 bytes: 618cd53

Chores

  • Update sizes: f161f76, 7060350
  • Update tooling: 64da2b0, dd9ce06