Skip to content
This repository was archived by the owner on Dec 25, 2023. It is now read-only.

Commit 6d2f360

Browse files
Merge pull request #361 from maktarsis/release-4.1.1
Release 4.1.1
2 parents 41c279e + 7ae46db commit 6d2f360

8 files changed

+11885
-7773
lines changed

.snyk

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
12
ignore: {}
23
patch: {}
4+
version: v1.13.5

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 4.1.1 2020-04-04
2+
3+
- Updated dependencies
4+
- Fixed package vulnerabilities
5+
16
# 4.1.0 2020-02-17
27

38
- Turn off Ivy (with Angular 9)

package-lock.json

+11,827-7,726
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+33-33
Original file line numberDiff line numberDiff line change
@@ -30,46 +30,46 @@
3030
"publication:all": "npm run publication:prepare && npm run publication:publish"
3131
},
3232
"dependencies": {
33-
"@angular/animations": "9.0.1",
34-
"@angular/common": "9.0.1",
35-
"@angular/compiler": "9.0.1",
36-
"@angular/core": "9.0.1",
37-
"@angular/forms": "9.0.1",
38-
"@angular/platform-browser": "9.0.1",
39-
"@angular/platform-browser-dynamic": "9.0.1",
40-
"@angular/router": "9.0.1",
33+
"@angular/animations": "9.1.0",
34+
"@angular/common": "9.1.0",
35+
"@angular/compiler": "9.1.0",
36+
"@angular/core": "9.1.0",
37+
"@angular/forms": "9.1.0",
38+
"@angular/platform-browser": "9.1.0",
39+
"@angular/platform-browser-dynamic": "9.1.0",
40+
"@angular/router": "9.1.0",
4141
"hammerjs": "2.0.8",
4242
"routeshub": "4.1.0",
43-
"rxjs": "6.5.4",
44-
"zone.js": "0.10.2"
43+
"rxjs": "6.5.5",
44+
"zone.js": "0.10.3"
4545
},
4646
"devDependencies": {
47-
"@angular-builders/jest": "8.3.2",
48-
"@angular-devkit/build-angular": "0.900.2",
49-
"@angular-devkit/build-ng-packagr": "0.900.2",
50-
"@angular/cli": "9.0.2",
51-
"@angular/compiler-cli": "9.0.1",
52-
"@angular/language-service": "9.0.1",
53-
"@commitlint/cli": "8.2.0",
54-
"@commitlint/config-conventional": "8.2.0",
55-
"@types/jest": "24.9.1",
56-
"@types/node": "12.11.1",
57-
"all-contributors-cli": "6.13.0",
58-
"codelyzer": "5.2.1",
59-
"husky": "3.1.0",
60-
"jest": "24.9.0",
47+
"@angular-builders/jest": "9.0.0",
48+
"@angular-devkit/build-angular": "0.901.0",
49+
"@angular-devkit/build-ng-packagr": "0.901.0",
50+
"@angular/cli": "9.1.0",
51+
"@angular/compiler-cli": "9.1.0",
52+
"@angular/language-service": "9.1.0",
53+
"@commitlint/cli": "8.3.5",
54+
"@commitlint/config-conventional": "8.3.4",
55+
"@types/jest": "25.2.1",
56+
"@types/node": "12.12.34",
57+
"all-contributors-cli": "6.14.0",
58+
"codelyzer": "5.2.2",
59+
"husky": "4.2.3",
60+
"jest": "25.2.6",
6161
"jsonlint": "1.6.3",
62-
"lint-staged": "9.5.0",
63-
"ng-packagr": "9.0.0",
64-
"prettier": "1.19.1",
62+
"lint-staged": "10.1.1",
63+
"ng-packagr": "9.1.0",
64+
"prettier": "2.0.2",
6565
"protractor": "6.0.0",
66-
"snyk": "1.290.2",
67-
"ts-node": "8.4.1",
68-
"tsickle": "0.37.0",
69-
"tslib": "1.10.0",
70-
"tslint": "5.20.1",
66+
"snyk": "1.305.0",
67+
"ts-node": "8.8.1",
68+
"tsickle": "0.38.1",
69+
"tslib": "1.11.1",
70+
"tslint": "6.1.1",
7171
"tslint-angular": "3.0.2",
7272
"tslint-config-prettier": "1.18.0",
73-
"typescript": "3.7.5"
73+
"typescript": "3.8.3"
7474
}
7575
}

package/__ngcc_entry_points__.json

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"ngccVersion":"9.1.0","configFileHash":"87c535c3ce0eac2a54c246892e0e21a1","lockFileHash":"b8a9c8f59393701bc9f3fd8c2e196bc5","entryPointPaths":[]}

package/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "routeshub",
33
"description": "A route management library and pattern for Angular",
4-
"version": "4.1.0",
4+
"version": "4.1.1",
55
"author": "Max Tarsis (https://github.com/maktarsis)",
66
"repository": {
77
"type": "git",

package/src/creators/note.creator.ts

+10-13
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,15 @@ export const createNote = <R = any, C = any>(
99
routes: Route[],
1010
nameOptions: DefaultNameOptions = {}
1111
): Notes<R, C> =>
12-
routes.reduce(
13-
(acc: Notes<R, C>, route: Route): Notes<R, C> => {
14-
const note: Note = {
15-
path: route.path,
16-
name: setRouteName(route.path, nameOptions)
17-
};
12+
routes.reduce((acc: Notes<R, C>, route: Route): Notes<R, C> => {
13+
const note: Note = {
14+
path: route.path,
15+
name: setRouteName(route.path, nameOptions)
16+
};
1817

19-
if (route.children) {
20-
note.children = createNote(route.children, nameOptions);
21-
}
18+
if (route.children) {
19+
note.children = createNote<C>(route.children, nameOptions);
20+
}
2221

23-
return { ...acc, [note.name]: note };
24-
},
25-
{} as Notes<R, C>
26-
);
22+
return { ...acc, [note.name]: note };
23+
}, {} as Notes<R, C>);

schematics.txt

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
https://www.softwarearchitekt.at/aktuelles/automatically-updating-angular-modules-with-schematics-and-the-cli/
2+
3+
https://medium.com/@martzcodes/writing-an-angular-schematic-to-add-a-lazy-loaded-feature-route-c8b211804fa5
4+
5+
https://github.com/rangle/schematics-angular/blob/master/src/ast/add-route-to-routing-module/add-route-to-routing-module.ts
6+

0 commit comments

Comments
 (0)