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

Commit

Permalink
Merge pull request #361 from maktarsis/release-4.1.1
Browse files Browse the repository at this point in the history
Release 4.1.1
  • Loading branch information
tarsisexistence authored Apr 4, 2020
2 parents 41c279e + 7ae46db commit 6d2f360
Show file tree
Hide file tree
Showing 8 changed files with 11,885 additions and 7,773 deletions.
2 changes: 2 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
ignore: {}
patch: {}
version: v1.13.5
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 4.1.1 2020-04-04

- Updated dependencies
- Fixed package vulnerabilities

# 4.1.0 2020-02-17

- Turn off Ivy (with Angular 9)
Expand Down
19,553 changes: 11,827 additions & 7,726 deletions package-lock.json

Large diffs are not rendered by default.

66 changes: 33 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,46 +30,46 @@
"publication:all": "npm run publication:prepare && npm run publication:publish"
},
"dependencies": {
"@angular/animations": "9.0.1",
"@angular/common": "9.0.1",
"@angular/compiler": "9.0.1",
"@angular/core": "9.0.1",
"@angular/forms": "9.0.1",
"@angular/platform-browser": "9.0.1",
"@angular/platform-browser-dynamic": "9.0.1",
"@angular/router": "9.0.1",
"@angular/animations": "9.1.0",
"@angular/common": "9.1.0",
"@angular/compiler": "9.1.0",
"@angular/core": "9.1.0",
"@angular/forms": "9.1.0",
"@angular/platform-browser": "9.1.0",
"@angular/platform-browser-dynamic": "9.1.0",
"@angular/router": "9.1.0",
"hammerjs": "2.0.8",
"routeshub": "4.1.0",
"rxjs": "6.5.4",
"zone.js": "0.10.2"
"rxjs": "6.5.5",
"zone.js": "0.10.3"
},
"devDependencies": {
"@angular-builders/jest": "8.3.2",
"@angular-devkit/build-angular": "0.900.2",
"@angular-devkit/build-ng-packagr": "0.900.2",
"@angular/cli": "9.0.2",
"@angular/compiler-cli": "9.0.1",
"@angular/language-service": "9.0.1",
"@commitlint/cli": "8.2.0",
"@commitlint/config-conventional": "8.2.0",
"@types/jest": "24.9.1",
"@types/node": "12.11.1",
"all-contributors-cli": "6.13.0",
"codelyzer": "5.2.1",
"husky": "3.1.0",
"jest": "24.9.0",
"@angular-builders/jest": "9.0.0",
"@angular-devkit/build-angular": "0.901.0",
"@angular-devkit/build-ng-packagr": "0.901.0",
"@angular/cli": "9.1.0",
"@angular/compiler-cli": "9.1.0",
"@angular/language-service": "9.1.0",
"@commitlint/cli": "8.3.5",
"@commitlint/config-conventional": "8.3.4",
"@types/jest": "25.2.1",
"@types/node": "12.12.34",
"all-contributors-cli": "6.14.0",
"codelyzer": "5.2.2",
"husky": "4.2.3",
"jest": "25.2.6",
"jsonlint": "1.6.3",
"lint-staged": "9.5.0",
"ng-packagr": "9.0.0",
"prettier": "1.19.1",
"lint-staged": "10.1.1",
"ng-packagr": "9.1.0",
"prettier": "2.0.2",
"protractor": "6.0.0",
"snyk": "1.290.2",
"ts-node": "8.4.1",
"tsickle": "0.37.0",
"tslib": "1.10.0",
"tslint": "5.20.1",
"snyk": "1.305.0",
"ts-node": "8.8.1",
"tsickle": "0.38.1",
"tslib": "1.11.1",
"tslint": "6.1.1",
"tslint-angular": "3.0.2",
"tslint-config-prettier": "1.18.0",
"typescript": "3.7.5"
"typescript": "3.8.3"
}
}
1 change: 1 addition & 0 deletions package/__ngcc_entry_points__.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"ngccVersion":"9.1.0","configFileHash":"87c535c3ce0eac2a54c246892e0e21a1","lockFileHash":"b8a9c8f59393701bc9f3fd8c2e196bc5","entryPointPaths":[]}
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "routeshub",
"description": "A route management library and pattern for Angular",
"version": "4.1.0",
"version": "4.1.1",
"author": "Max Tarsis (https://github.com/maktarsis)",
"repository": {
"type": "git",
Expand Down
23 changes: 10 additions & 13 deletions package/src/creators/note.creator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,15 @@ export const createNote = <R = any, C = any>(
routes: Route[],
nameOptions: DefaultNameOptions = {}
): Notes<R, C> =>
routes.reduce(
(acc: Notes<R, C>, route: Route): Notes<R, C> => {
const note: Note = {
path: route.path,
name: setRouteName(route.path, nameOptions)
};
routes.reduce((acc: Notes<R, C>, route: Route): Notes<R, C> => {
const note: Note = {
path: route.path,
name: setRouteName(route.path, nameOptions)
};

if (route.children) {
note.children = createNote(route.children, nameOptions);
}
if (route.children) {
note.children = createNote<C>(route.children, nameOptions);
}

return { ...acc, [note.name]: note };
},
{} as Notes<R, C>
);
return { ...acc, [note.name]: note };
}, {} as Notes<R, C>);
6 changes: 6 additions & 0 deletions schematics.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
https://www.softwarearchitekt.at/aktuelles/automatically-updating-angular-modules-with-schematics-and-the-cli/

https://medium.com/@martzcodes/writing-an-angular-schematic-to-add-a-lazy-loaded-feature-route-c8b211804fa5

https://github.com/rangle/schematics-angular/blob/master/src/ast/add-route-to-routing-module/add-route-to-routing-module.ts

0 comments on commit 6d2f360

Please sign in to comment.