Skip to content

Commit 80118bc

Browse files
chore: release 0.2.1
1 parent 1b4523e commit 80118bc

File tree

8 files changed

+77
-101
lines changed

8 files changed

+77
-101
lines changed

CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
<a name="0.2.1"></a>
2+
3+
## [0.2.1](https://github.com/brandonroberts/angular-routing/compare/0.2.0...0.2.1) (2020-07-23)
4+
5+
### Bug Fixes
6+
7+
- pass `exact` option when parsing route params ([#36](https://github.com/brandonroberts/angular-routing/issues/36)) ([156f01e](https://github.com/brandonroberts/angular-routing/commit/156f01e))
8+
- pass base to URL only when value is provided ([#32](https://github.com/brandonroberts/angular-routing/issues/32)) ([3810e3b](https://github.com/brandonroberts/angular-routing/commit/3810e3b))
9+
10+
### Features
11+
12+
- allow Angular v10 as peer dependency ([#31](https://github.com/brandonroberts/angular-routing/issues/31)) ([b0e67ba](https://github.com/brandonroberts/angular-routing/commit/b0e67ba))
13+
- allow paths without leading slash ([#34](https://github.com/brandonroberts/angular-routing/issues/34)) ([03ad384](https://github.com/brandonroberts/angular-routing/commit/03ad384))
14+
- ng-add schematics implementation ([#16](https://github.com/brandonroberts/angular-routing/issues/16)) ([54e728b](https://github.com/brandonroberts/angular-routing/commit/54e728b)), closes [#9](https://github.com/brandonroberts/angular-routing/issues/9)
15+
116
<a name="0.2.0"></a>
217

318
# [0.2.0](https://github.com/brandonroberts/angular-routing/compare/0.1.1...0.2.0) (2020-07-21)

angular.json

Lines changed: 13 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,7 @@
4040
"libs/angular-routing/tsconfig.lib.json",
4141
"libs/angular-routing/tsconfig.spec.json"
4242
],
43-
"exclude": [
44-
"**/node_modules/**",
45-
"!libs/angular-routing/**/*"
46-
]
43+
"exclude": ["**/node_modules/**", "!libs/angular-routing/**/*"]
4744
}
4845
},
4946
"test": {
@@ -78,9 +75,7 @@
7875
"apps/getting-started/src/favicon.ico",
7976
"apps/getting-started/src/assets"
8077
],
81-
"styles": [
82-
"apps/getting-started/src/styles.css"
83-
],
78+
"styles": ["apps/getting-started/src/styles.css"],
8479
"scripts": []
8580
},
8681
"configurations": {
@@ -138,10 +133,7 @@
138133
"apps/getting-started/tsconfig.app.json",
139134
"apps/getting-started/tsconfig.spec.json"
140135
],
141-
"exclude": [
142-
"**/node_modules/**",
143-
"!apps/getting-started/**/*"
144-
]
136+
"exclude": ["**/node_modules/**", "!apps/getting-started/**/*"]
145137
}
146138
},
147139
"test": {
@@ -176,13 +168,8 @@
176168
"lint": {
177169
"builder": "@angular-devkit/build-angular:tslint",
178170
"options": {
179-
"tsConfig": [
180-
"apps/getting-started-e2e/tsconfig.e2e.json"
181-
],
182-
"exclude": [
183-
"**/node_modules/**",
184-
"!apps/getting-started-e2e/**/*"
185-
]
171+
"tsConfig": ["apps/getting-started-e2e/tsconfig.e2e.json"],
172+
"exclude": ["**/node_modules/**", "!apps/getting-started-e2e/**/*"]
186173
}
187174
}
188175
}
@@ -207,9 +194,7 @@
207194
"apps/example-app/src/favicon.ico",
208195
"apps/example-app/src/assets"
209196
],
210-
"styles": [
211-
"apps/example-app/src/styles.css"
212-
],
197+
"styles": ["apps/example-app/src/styles.css"],
213198
"scripts": []
214199
},
215200
"configurations": {
@@ -267,10 +252,7 @@
267252
"apps/example-app/tsconfig.app.json",
268253
"apps/example-app/tsconfig.spec.json"
269254
],
270-
"exclude": [
271-
"**/node_modules/**",
272-
"!apps/example-app/**/*"
273-
]
255+
"exclude": ["**/node_modules/**", "!apps/example-app/**/*"]
274256
}
275257
},
276258
"test": {
@@ -305,13 +287,8 @@
305287
"lint": {
306288
"builder": "@angular-devkit/build-angular:tslint",
307289
"options": {
308-
"tsConfig": [
309-
"apps/example-app-e2e/tsconfig.e2e.json"
310-
],
311-
"exclude": [
312-
"**/node_modules/**",
313-
"!apps/example-app-e2e/**/*"
314-
]
290+
"tsConfig": ["apps/example-app-e2e/tsconfig.e2e.json"],
291+
"exclude": ["**/node_modules/**", "!apps/example-app-e2e/**/*"]
315292
}
316293
}
317294
}
@@ -336,9 +313,7 @@
336313
"apps/tour-of-heroes/src/favicon.ico",
337314
"apps/tour-of-heroes/src/assets"
338315
],
339-
"styles": [
340-
"apps/tour-of-heroes/src/styles.css"
341-
],
316+
"styles": ["apps/tour-of-heroes/src/styles.css"],
342317
"scripts": []
343318
},
344319
"configurations": {
@@ -396,10 +371,7 @@
396371
"apps/tour-of-heroes/tsconfig.app.json",
397372
"apps/tour-of-heroes/tsconfig.spec.json"
398373
],
399-
"exclude": [
400-
"**/node_modules/**",
401-
"!apps/tour-of-heroes/**/*"
402-
]
374+
"exclude": ["**/node_modules/**", "!apps/tour-of-heroes/**/*"]
403375
}
404376
},
405377
"test": {
@@ -434,13 +406,8 @@
434406
"lint": {
435407
"builder": "@angular-devkit/build-angular:tslint",
436408
"options": {
437-
"tsConfig": [
438-
"apps/tour-of-heroes-e2e/tsconfig.e2e.json"
439-
],
440-
"exclude": [
441-
"**/node_modules/**",
442-
"!apps/tour-of-heroes-e2e/**/*"
443-
]
409+
"tsConfig": ["apps/tour-of-heroes-e2e/tsconfig.e2e.json"],
410+
"exclude": ["**/node_modules/**", "!apps/tour-of-heroes-e2e/**/*"]
444411
}
445412
}
446413
}

libs/angular-routing/ng-package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
33
"dest": "../../dist/libs/angular-routing",
44
"assets": ["**/*.md", "./schematics/**/*.json"],
5-
"whitelistedNonPeerDependencies": [
6-
"path-to-regexp",
7-
"query-string"
8-
],
5+
"whitelistedNonPeerDependencies": ["path-to-regexp", "query-string"],
96
"lib": {
107
"entryFile": "src/index.ts"
118
}

libs/angular-routing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-routing",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"description": "A declarative router for Angular applications",
55
"schematics": "./schematics/collection.json",
66
"ng-add": {

libs/angular-routing/schematics/ng-add/index.spec.ts

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ export const defaultAppOptions = {
2222
skipTests: false,
2323
};
2424

25-
2625
const collectionPath = path.join(__dirname, '../collection.json');
2726

2827
describe('ng add function', () => {
@@ -31,25 +30,31 @@ describe('ng add function', () => {
3130

3231
const defaultOptions: RouterOptions = {
3332
project: 'bar',
34-
module: 'app'
33+
module: 'app',
3534
};
3635

3736
beforeEach(async () => {
37+
schematicRunner = new SchematicTestRunner(
38+
'angular-routing',
39+
collectionPath
40+
);
3841

39-
schematicRunner = new SchematicTestRunner('angular-routing', collectionPath);
40-
41-
appTree = await schematicRunner.runExternalSchematicAsync(
42-
'@schematics/angular',
43-
'workspace',
44-
workspaceOptions
45-
).toPromise();
42+
appTree = await schematicRunner
43+
.runExternalSchematicAsync(
44+
'@schematics/angular',
45+
'workspace',
46+
workspaceOptions
47+
)
48+
.toPromise();
4649

47-
appTree = await schematicRunner.runExternalSchematicAsync(
48-
'@schematics/angular',
49-
'application',
50-
defaultAppOptions,
51-
appTree
52-
).toPromise();
50+
appTree = await schematicRunner
51+
.runExternalSchematicAsync(
52+
'@schematics/angular',
53+
'application',
54+
defaultAppOptions,
55+
appTree
56+
)
57+
.toPromise();
5358
});
5459

5560
it('should import RouterModule a specified module', () => {
Lines changed: 24 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
1-
{
2-
"$schema": "http://json-schema.org/schema",
3-
"id": "SchematicsAddRouting",
4-
"title": "Angular Routing ng-add Options Schema",
5-
"type": "object",
6-
"properties": {
7-
"project": {
8-
"type": "string",
9-
"description": "The name of the project.",
10-
"aliases": [
11-
"p"
12-
]
13-
},
14-
"module": {
15-
"type": "string",
16-
"default": "app",
17-
"description": "Allows specification of the declaring module.",
18-
"alias": "m",
19-
"subtype": "filepath"
20-
},
21-
"path": {
22-
"type": "string",
23-
"format": "path",
24-
"description": "The path to create the state.",
25-
"visible": false
26-
}
1+
{
2+
"$schema": "http://json-schema.org/schema",
3+
"id": "SchematicsAddRouting",
4+
"title": "Angular Routing ng-add Options Schema",
5+
"type": "object",
6+
"properties": {
7+
"project": {
8+
"type": "string",
9+
"description": "The name of the project.",
10+
"aliases": ["p"]
11+
},
12+
"module": {
13+
"type": "string",
14+
"default": "app",
15+
"description": "Allows specification of the declaring module.",
16+
"alias": "m",
17+
"subtype": "filepath"
18+
},
19+
"path": {
20+
"type": "string",
21+
"format": "path",
22+
"description": "The path to create the state.",
23+
"visible": false
2724
}
2825
}
26+
}

libs/angular-routing/schematics/utils/ast-utils.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import * as ts from 'typescript';
9-
import {
10-
Change,
11-
InsertChange,
12-
NoopChange,
13-
} from './change';
14-
9+
import { Change, InsertChange, NoopChange } from './change';
1510

1611
/**
1712
* Find all nodes from the AST in the subtree of node of SyntaxKind kind.

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-routing",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"license": "MIT",
55
"scripts": {
66
"ng": "nx",
@@ -84,8 +84,7 @@
8484
},
8585
"lint-staged": {
8686
"*.{ts,json,md}": [
87-
"yarn format",
88-
"git add"
87+
"yarn format"
8988
]
9089
},
9190
"husky": {

0 commit comments

Comments
 (0)