@thi.ng/router 3.0.8 → 3.1.3

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 (2) hide show
  1. package/CHANGELOG.md +114 -38
  2. package/package.json +89 -84
package/CHANGELOG.md CHANGED
@@ -1,83 +1,159 @@
1
1
  # Change Log
2
2
 
3
+ - **Last updated**: 2021-12-13T10:26:00Z
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
5
15
 
6
- ## [3.0.8](https://github.com/thi-ng/umbrella/compare/@thi.ng/router@3.0.7...@thi.ng/router@3.0.8) (2021-11-10)
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
7
21
 
8
- **Note:** Version bump only for package @thi.ng/router
22
+ #### ♻️ Refactoring
9
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.
10
30
 
31
+ ### [3.0.1](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@3.0.1) (2021-10-13)
11
32
 
33
+ #### ♻️ Refactoring
12
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
13
38
 
14
- ## [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)
39
+ # [3.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@3.0.0) (2021-10-12)
15
40
 
16
- **Note:** Version bump only for package @thi.ng/router
41
+ #### 🛑 Breaking changes
17
42
 
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
18
55
 
56
+ #### ♻️ Refactoring
19
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)
20
67
 
68
+ ### [2.0.54](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.54) (2021-09-03)
21
69
 
22
- # [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)
70
+ #### ♻️ Refactoring
23
71
 
72
+ - fix up TS4.4 changes ([04a93a6](https://github.com/thi-ng/umbrella/commit/04a93a6))
24
73
 
25
- ### Build System
74
+ ### [2.0.36](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.36) (2020-12-07)
26
75
 
27
- * major update of ALL pkgs (export maps, ESM only) ([0d1d6ea](https://github.com/thi-ng/umbrella/commit/0d1d6ea9fab2a645d6c5f2bf2591459b939c09b6))
76
+ #### ♻️ Refactoring
28
77
 
78
+ - update type-only imports in various tests/pkgs ([3fd9c24](https://github.com/thi-ng/umbrella/commit/3fd9c24))
29
79
 
30
- ### BREAKING CHANGES
80
+ ### [2.0.33](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.33) (2020-09-22)
31
81
 
32
- * discontinue CommonJS & UMD versions
82
+ #### ♻️ Refactoring
33
83
 
34
- - only ESM modules will be published from now on
35
- - CJS obsolete due to ESM support in recent versions of node:
36
- - i.e. launch NodeJS via:
37
- - `node --experimental-specifier-resolution=node --experimental-repl-await`
38
- - in the node REPL use `await import(...)` instead of `require()`
39
- - UMD obsolete due to widespread browser support for ESM
84
+ - extract matchRoutes() ([d5917ec](https://github.com/thi-ng/umbrella/commit/d5917ec))
40
85
 
41
- Also:
42
- - normalize/restructure/reorg all package.json files
43
- - cleanup all build scripts, remove obsolete
44
- - switch from mocha to @thi.ng/testament for all tests
86
+ ### [2.0.31](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.31) (2020-09-13)
45
87
 
88
+ #### ♻️ Refactoring
46
89
 
90
+ - update imports ([22cf5c6](https://github.com/thi-ng/umbrella/commit/22cf5c6))
47
91
 
92
+ ### [2.0.10](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.10) (2020-02-25)
48
93
 
94
+ #### ♻️ Refactoring
49
95
 
96
+ - update imports, internal restruct ([bb2d60e](https://github.com/thi-ng/umbrella/commit/bb2d60e))
50
97
 
51
- # [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)
98
+ # [2.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@2.0.0) (2019-07-07)
52
99
 
53
- ### Code Refactoring
100
+ #### 🛑 Breaking changes
54
101
 
55
- - **router:** address TS strictNullChecks, update types, add checks ([c7ff9a4](https://github.com/thi-ng/umbrella/commit/c7ff9a4))
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
56
106
 
57
- ### Features
107
+ #### 🚀 Features
58
108
 
59
- - **router:** enable TS strict compiler flags (refactor) ([d3ecae3](https://github.com/thi-ng/umbrella/commit/d3ecae3))
109
+ - enable TS strict compiler flags (refactor) ([d3ecae3](https://github.com/thi-ng/umbrella/commit/d3ecae3))
60
110
 
61
- ### BREAKING CHANGES
111
+ ### [1.0.5](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@1.0.5) (2019-03-10)
62
112
 
63
- - **router:** Route & RouteMatch IDs MUST be strings now
64
- - update config fields from PropertyKey => string
65
- - add initial & default route checks in ctor
113
+ #### ♻️ Refactoring
66
114
 
67
- # [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)
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))
68
116
 
69
- ### Build System
117
+ # [1.0.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/router@1.0.0) (2019-01-21)
118
+
119
+ #### 🛑 Breaking changes
70
120
 
71
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)
72
148
 
73
- ### BREAKING CHANGES
149
+ #### ♻️ Refactoring
74
150
 
75
- - enabled multi-outputs (ES6 modules, CJS, UMD)
76
- - build scripts now first build ES6 modules in package root, then call `scripts/bundle-module` to build minified CJS & UMD bundles in `/lib`
77
- - 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)
78
154
 
79
- # 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)
80
156
 
81
- ### Features
157
+ #### 🚀 Features
82
158
 
83
- - **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/package.json CHANGED
@@ -1,90 +1,95 @@
1
1
  {
2
- "name": "@thi.ng/router",
3
- "version": "3.0.8",
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.3",
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.2.0",
38
- "@thi.ng/checks": "^3.0.7",
39
- "@thi.ng/equiv": "^2.0.7",
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.3",
38
+ "@thi.ng/checks": "^3.1.3",
39
+ "@thi.ng/equiv": "^2.1.3",
40
+ "@thi.ng/errors": "^2.1.3",
41
+ "tslib": "^2.3.1"
42
+ },
43
+ "devDependencies": {
44
+ "@microsoft/api-extractor": "^7.19.2",
45
+ "@thi.ng/testament": "^0.2.3",
46
+ "rimraf": "^3.0.2",
47
+ "tools": "^0.0.1",
48
+ "typedoc": "^0.22.10",
49
+ "typescript": "^4.5.3"
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": "5fe52419af63984ebe53032201b2a6174b9cb159"
90
- }
92
+ "year": 2014
93
+ },
94
+ "gitHead": "2db9dd34c0c2c60cbfde3dad0bca352b20292f5c\n"
95
+ }