@thi.ng/router 3.0.7 → 3.1.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/CHANGELOG.md +120 -36
  2. package/README.md +1 -1
  3. package/package.json +89 -84
package/CHANGELOG.md CHANGED
@@ -1,75 +1,159 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-11-21T17:09:28Z
4
+ - **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
5
+
3
6
  All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
7
+ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelines.
8
+
9
+ **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
+ and/or version bumps of transitive dependencies.
11
+
12
+ ## [3.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@3.1.0) (2021-11-17)
13
+
14
+ #### 🚀 Features
15
+
16
+ - Using workspaces for local tools ([bf7a404](https://github.com/thi-ng/umbrella/commit/bf7a404))
17
+ Improving the overall build ergonomics
18
+ - introduced a tools workspaces
19
+ - imported it in all needed packages/examples
20
+ - inclusive project root
21
+
22
+ #### ♻️ Refactoring
23
+
24
+ - testrunner to binary ([4ebbbb2](https://github.com/thi-ng/umbrella/commit/4ebbbb2))
25
+ this commit reverts (partly) changes made in:
26
+ ef346d7a8753590dc9094108a3d861a8dbd5dd2c
27
+ overall purpose is better testament ergonomics:
28
+ instead of having to pass NODE_OPTIONS with every invocation
29
+ having a binary to handle this for us.
30
+
31
+ ### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@3.0.1) (2021-10-13)
32
+
33
+ #### ♻️ Refactoring
34
+
35
+ - update imports in all tests/pkgs ([effd591](https://github.com/thi-ng/umbrella/commit/effd591))
36
+ - update imports in all pkgs ([5fa2b6f](https://github.com/thi-ng/umbrella/commit/5fa2b6f))
37
+ - add .js suffix for all relative imports
38
+
39
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@3.0.0) (2021-10-12)
5
40
 
6
- ## [3.0.7](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@3.0.6...@thi.ng/router@3.0.7) (2021-11-03)
41
+ #### 🛑 Breaking changes
7
42
 
8
- **Note:** Version bump only for package @thi.ng/router
43
+ - major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea))
44
+ - BREAKING CHANGE: discontinue CommonJS & UMD versions
45
+ - only ESM modules will be published from now on
46
+ - CJS obsolete due to ESM support in recent versions of node:
47
+ - i.e. launch NodeJS via:
48
+ - `node --experimental-specifier-resolution=node --experimental-repl-await`
49
+ - in the node REPL use `await import(...)` instead of `require()`
50
+ - UMD obsolete due to widespread browser support for ESM
51
+ Also:
52
+ - normalize/restructure/reorg all package.json files
53
+ - cleanup all build scripts, remove obsolete
54
+ - switch from mocha to [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament) for all tests
9
55
 
56
+ #### ♻️ Refactoring
10
57
 
58
+ - update deps & imports in various pkgs ([e1cf29e](https://github.com/thi-ng/umbrella/commit/e1cf29e))
59
+ - largely related to recent updates/restructuring of these packages:
60
+ - api
61
+ - defmulti
62
+ - errors
63
+ - logger
64
+ - update imports ([138571a](https://github.com/thi-ng/umbrella/commit/138571a))
65
+ - update all tests in _all_ pkgs ([8b582bc](https://github.com/thi-ng/umbrella/commit/8b582bc))
66
+ - update all to use [@thi.ng/testament](https://github.com/thi-ng/umbrella/tree/main/packages/testament)
11
67
 
68
+ ### [2.0.54](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.54) (2021-09-03)
12
69
 
70
+ #### ♻️ Refactoring
13
71
 
14
- # [3.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@2.0.54...@thi.ng/router@3.0.0) (2021-10-12)
72
+ - fix up TS4.4 changes ([04a93a6](https://github.com/thi-ng/umbrella/commit/04a93a6))
15
73
 
74
+ ### [2.0.36](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.36) (2020-12-07)
16
75
 
17
- ### Build System
76
+ #### ♻️ Refactoring
18
77
 
19
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
78
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
20
79
 
80
+ ### [2.0.33](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.33) (2020-09-22)
21
81
 
22
- ### BREAKING CHANGES
82
+ #### ♻️ Refactoring
23
83
 
24
- * discontinue CommonJS & UMD versions
84
+ - extract matchRoutes() ([d5917ec](https://github.com/thi-ng/umbrella/commit/d5917ec))
25
85
 
26
- - only ESM modules will be published from now on
27
- - CJS obsolete due to ESM support in recent versions of node:
28
- - i.e. launch NodeJS via:
29
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
30
- - in the node REPL use `await import(...)` instead of `require()`
31
- - UMD obsolete due to widespread browser support for ESM
86
+ ### [2.0.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.31) (2020-09-13)
32
87
 
33
- Also:
34
- - normalize/restructure/reorg all package.json files
35
- - cleanup all build scripts, remove obsolete
36
- - switch from mocha to @thi.ng/testament for all tests
88
+ #### ♻️ Refactoring
37
89
 
90
+ - update imports ([22cf5c6](https://github.com/thi-ng/umbrella/commit/22cf5c6))
38
91
 
92
+ ### [2.0.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.10) (2020-02-25)
39
93
 
94
+ #### ♻️ Refactoring
40
95
 
96
+ - update imports, internal restruct ([bb2d60e](https://github.com/thi-ng/umbrella/commit/bb2d60e))
41
97
 
98
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.0) (2019-07-07)
42
99
 
43
- # [2.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@1.0.12...@thi.ng/router@2.0.0) (2019-07-07)
100
+ #### 🛑 Breaking changes
44
101
 
45
- ### Code Refactoring
102
+ - address TS strictNullChecks, update types, add checks ([c7ff9a4](https://github.com/thi-ng/umbrella/commit/c7ff9a4))
103
+ - BREAKING CHANGE: Route & RouteMatch IDs MUST be strings now
104
+ - update config fields from PropertyKey => string
105
+ - add initial & default route checks in ctor
46
106
 
47
- - **router:** address TS strictNullChecks, update types, add checks ([c7ff9a4](https://github.com/thi-ng/umbrella/commit/c7ff9a4))
107
+ #### 🚀 Features
48
108
 
49
- ### Features
109
+ - enable TS strict compiler flags (refactor) ([d3ecae3](https://github.com/thi-ng/umbrella/commit/d3ecae3))
50
110
 
51
- - **router:** enable TS strict compiler flags (refactor) ([d3ecae3](https://github.com/thi-ng/umbrella/commit/d3ecae3))
111
+ ### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@1.0.5) (2019-03-10)
52
112
 
53
- ### BREAKING CHANGES
113
+ #### ♻️ Refactoring
54
114
 
55
- - **router:** Route & RouteMatch IDs MUST be strings now
56
- - update config fields from PropertyKey => string
57
- - add initial & default route checks in ctor
115
+ - re-use type aliases from [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) ([0d2fdff](https://github.com/thi-ng/umbrella/commit/0d2fdff))
58
116
 
59
- # [1.0.0](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@0.1.30...@thi.ng/router@1.0.0) (2019-01-21)
117
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@1.0.0) (2019-01-21)
60
118
 
61
- ### Build System
119
+ #### 🛑 Breaking changes
62
120
 
63
121
  - update package build scripts & outputs, imports in ~50 packages ([b54b703](https://github.com/thi-ng/umbrella/commit/b54b703))
122
+ - BREAKING CHANGE: enabled multi-outputs (ES6 modules, CJS, UMD)
123
+ - build scripts now first build ES6 modules in package root, then call
124
+ `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
125
+ - all imports MUST be updated to only refer to package level
126
+ (not individual files anymore). tree shaking in user land will get rid of
127
+ all unused imported symbols.
128
+
129
+ ### [0.1.28](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@0.1.28) (2018-11-13)
130
+
131
+ #### ♻️ Refactoring
132
+
133
+ - update Route, RouteMatch & minor optimizations ([1d085bf](https://github.com/thi-ng/umbrella/commit/1d085bf))
134
+
135
+ ### [0.1.20](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@0.1.20) (2018-08-01)
136
+
137
+ #### ♻️ Refactoring
138
+
139
+ - TS3.0 PropertyKey handling ([2ecd538](https://github.com/thi-ng/umbrella/commit/2ecd538))
140
+
141
+ ### [0.1.11](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@0.1.11) (2018-05-10)
142
+
143
+ #### ♻️ Refactoring
144
+
145
+ - update deps & imports in all packages due to [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api) split ([bc45636](https://github.com/thi-ng/umbrella/commit/bc45636))
146
+
147
+ ### [0.1.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@0.1.1) (2018-03-21)
64
148
 
65
- ### BREAKING CHANGES
149
+ #### ♻️ Refactoring
66
150
 
67
- - enabled multi-outputs (ES6 modules, CJS, UMD)
68
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
69
- - all imports MUST be updated to only refer to package level (not individual files anymore). tree shaking in user land will get rid of all unused imported symbols.
151
+ - update error handling ([adc559a](https://github.com/thi-ng/umbrella/commit/adc559a))
152
+ - update INotify dummy impl ([b328780](https://github.com/thi-ng/umbrella/commit/b328780))
153
+ - reflecting INotify updates in [@thi.ng/api](https://github.com/thi-ng/umbrella/tree/main/packages/api)
70
154
 
71
- # 0.1.0 (2018-03-11)
155
+ ## [0.1.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@0.1.0) (2018-03-11)
72
156
 
73
- ### Features
157
+ #### 🚀 Features
74
158
 
75
- - **router:** re-import router package (MBP2010), minor refactor & fixes ([07b4e06](https://github.com/thi-ng/umbrella/commit/07b4e06))
159
+ - re-import router package (MBP2010), minor refactor & fixes ([07b4e06](https://github.com/thi-ng/umbrella/commit/07b4e06))
package/README.md CHANGED
@@ -70,7 +70,7 @@ node --experimental-repl-await
70
70
  > const router = await import("@thi.ng/router");
71
71
  ```
72
72
 
73
- Package sizes (gzipped, pre-treeshake): ESM: 1.53 KB
73
+ Package sizes (gzipped, pre-treeshake): ESM: 1.56 KB
74
74
 
75
75
  ## Dependencies
76
76
 
package/package.json CHANGED
@@ -1,90 +1,95 @@
1
1
  {
2
- "name": "@thi.ng/router",
3
- "version": "3.0.7",
4
- "description": "Generic router for browser & non-browser based applications",
5
- "type": "module",
6
- "module": "./index.js",
7
- "typings": "./index.d.ts",
8
- "sideEffects": false,
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/thi-ng/umbrella.git"
2
+ "name": "@thi.ng/router",
3
+ "version": "3.1.2",
4
+ "description": "Generic router for browser & non-browser based applications",
5
+ "type": "module",
6
+ "module": "./index.js",
7
+ "typings": "./index.d.ts",
8
+ "sideEffects": false,
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "https://github.com/thi-ng/umbrella.git"
12
+ },
13
+ "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/router#readme",
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/postspectacular"
12
18
  },
13
- "homepage": "https://github.com/thi-ng/umbrella/tree/develop/packages/router#readme",
14
- "funding": [
15
- {
16
- "type": "github",
17
- "url": "https://github.com/sponsors/postspectacular"
18
- },
19
- {
20
- "type": "patreon",
21
- "url": "https://patreon.com/thing_umbrella"
22
- }
23
- ],
24
- "author": "Karsten Schmidt <k+npm@thi.ng>",
25
- "license": "Apache-2.0",
26
- "scripts": {
27
- "build": "yarn clean && tsc --declaration",
28
- "clean": "rimraf *.js *.d.ts *.map doc",
29
- "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
- "doc:ae": "mkdir -p .ae/doc .ae/temp && node_modules/.bin/api-extractor run --local --verbose",
31
- "doc:readme": "yarn doc:stats && ../../scripts/node-esm ../../tools/src/readme.ts",
32
- "doc:stats": "../../scripts/node-esm ../../tools/src/module-stats.ts",
33
- "pub": "yarn build && yarn publish --access public",
34
- "test": "testament test"
35
- },
36
- "dependencies": {
37
- "@thi.ng/api": "^8.1.0",
38
- "@thi.ng/checks": "^3.0.6",
39
- "@thi.ng/equiv": "^2.0.6",
40
- "@thi.ng/errors": "^2.0.6",
41
- "tslib": "^2.3.1"
42
- },
43
- "devDependencies": {
44
- "@thi.ng/testament": "^0.1.6"
19
+ {
20
+ "type": "patreon",
21
+ "url": "https://patreon.com/thing_umbrella"
22
+ }
23
+ ],
24
+ "author": "Karsten Schmidt <k+npm@thi.ng>",
25
+ "license": "Apache-2.0",
26
+ "scripts": {
27
+ "build": "yarn clean && tsc --declaration",
28
+ "clean": "rimraf '*.js' '*.d.ts' '*.map' doc",
29
+ "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
30
+ "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
31
+ "doc:readme": "yarn doc:stats && tools:readme",
32
+ "doc:stats": "tools:module-stats",
33
+ "pub": "yarn npm publish --access public",
34
+ "test": "testament test"
35
+ },
36
+ "dependencies": {
37
+ "@thi.ng/api": "^8.3.2",
38
+ "@thi.ng/checks": "^3.1.2",
39
+ "@thi.ng/equiv": "^2.1.2",
40
+ "@thi.ng/errors": "^2.1.2",
41
+ "tslib": "^2.3.1"
42
+ },
43
+ "devDependencies": {
44
+ "@microsoft/api-extractor": "^7.18.19",
45
+ "@thi.ng/testament": "^0.2.2",
46
+ "rimraf": "^3.0.2",
47
+ "tools": "^0.0.1",
48
+ "typedoc": "^0.22.9",
49
+ "typescript": "^4.5.2"
50
+ },
51
+ "keywords": [
52
+ "browser",
53
+ "datastructure",
54
+ "declarative",
55
+ "history",
56
+ "html",
57
+ "parametric",
58
+ "router",
59
+ "typescript",
60
+ "ui",
61
+ "validate"
62
+ ],
63
+ "publishConfig": {
64
+ "access": "public"
65
+ },
66
+ "engines": {
67
+ "node": ">=12.7"
68
+ },
69
+ "files": [
70
+ "*.js",
71
+ "*.d.ts"
72
+ ],
73
+ "exports": {
74
+ ".": {
75
+ "import": "./index.js"
45
76
  },
46
- "keywords": [
47
- "browser",
48
- "datastructure",
49
- "declarative",
50
- "history",
51
- "html",
52
- "parametric",
53
- "router",
54
- "typescript",
55
- "ui",
56
- "validate"
57
- ],
58
- "publishConfig": {
59
- "access": "public"
77
+ "./api": {
78
+ "import": "./api.js"
60
79
  },
61
- "engines": {
62
- "node": ">=12.7"
80
+ "./basic": {
81
+ "import": "./basic.js"
63
82
  },
64
- "files": [
65
- "*.js",
66
- "*.d.ts"
83
+ "./history": {
84
+ "import": "./history.js"
85
+ }
86
+ },
87
+ "thi.ng": {
88
+ "related": [
89
+ "hdom",
90
+ "rdom"
67
91
  ],
68
- "exports": {
69
- ".": {
70
- "import": "./index.js"
71
- },
72
- "./api": {
73
- "import": "./api.js"
74
- },
75
- "./basic": {
76
- "import": "./basic.js"
77
- },
78
- "./history": {
79
- "import": "./history.js"
80
- }
81
- },
82
- "thi.ng": {
83
- "related": [
84
- "hdom",
85
- "rdom"
86
- ],
87
- "year": 2014
88
- },
89
- "gitHead": "852cd2450617c86d15d18477dc634f17f04202eb"
90
- }
92
+ "year": 2014
93
+ },
94
+ "gitHead": "e8a7c2a40191b391cef182c2978e5a6c85987a87\n"
95
+ }