@minute-spa/vanilla-ui-router 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +4 -22
  2. package/index.js +7 -23
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A lightweight, client-side router for single-page applications (SPAs) that handles navigation, route registration, authentication, and lifecycle management. This is a standalone component of the minute-spa browser SPA application framework (work in progress).
4
4
 
5
+ This module is a component of the Minute SPA framework (https://github.com/devosm1030/minute-spa), but is an standalone component that can be used independently of the framework.
6
+
5
7
  Zero dependencies - use in your project via NPM, or simply clone the code right into your project for a truly vanilla experience that requires no packagers or bundlers!
6
8
 
7
9
  ## Table of Contents
@@ -49,7 +51,7 @@ import { VanillaUiRouter } from '@minute-spa/vanilla-ui-router'
49
51
 
50
52
  #### Installation
51
53
 
52
- Clone packages/VanillaUiRouter/index.js from https://github.com/devosm1030/minute-spa into your project and rename as appropriate.
54
+ Clone https://github.com/devosm1030/minute-spa/blob/main/packages/VanillaUiRouter/index.js into your project and rename as appropriate.
53
55
 
54
56
  #### Usage
55
57
 
@@ -622,24 +624,4 @@ router.initialNav()
622
624
 
623
625
  ## License
624
626
 
625
- MIT License
626
-
627
- Copyright (c) 2025 Mike DeVos
628
-
629
- Permission is hereby granted, free of charge, to any person obtaining a copy
630
- of this software and associated documentation files (the "Software"), to deal
631
- in the Software without restriction, including without limitation the rights
632
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
633
- copies of the Software, and to permit persons to whom the Software is
634
- furnished to do so, subject to the following conditions:
635
-
636
- The above copyright notice and this permission notice shall be included in all
637
- copies or substantial portions of the Software.
638
-
639
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
640
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
641
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
642
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
643
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
644
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
645
- SOFTWARE.
627
+ MIT License - See notice in index.js comments.
package/index.js CHANGED
@@ -1,29 +1,13 @@
1
1
  /*
2
- MIT License
3
-
4
- Copyright (c) 2025 Mike DeVos
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
23
- */
2
+ * Minute Spa - Vanilla UI Router v0.0.2 (https://github.com/devosm1030/minute-spa/)
3
+ * Copyright 2025 Mike DeVos
4
+ * Licensed under MIT (https://github.com/devosm1030/minute-spa/blob/main/LICENSE)
5
+ */
24
6
 
25
7
  /*
26
- VanillaUiRouter is a simple client-side router for vanilla JavaScript SPA applications.
8
+ VanillaUiRouter:
9
+
10
+ A simple client-side router for vanilla JavaScript SPA applications.
27
11
  */
28
12
 
29
13
  class VanillaUiRouter {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@minute-spa/vanilla-ui-router",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A simple vanilla client side SPA router.",
5
5
  "main": "index.js",
6
6
  "author": "Mike DeVos",