Skip to content

Commit 59d5a46

Browse files
author
Rafael Fernandez Serra
committed
11.1.0
1 parent 8cbd06b commit 59d5a46

File tree

2 files changed

+53
-41
lines changed

2 files changed

+53
-41
lines changed

CHANGELOG.md

Lines changed: 52 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# 11.1.0 (2023-04-13)
2+
[Compare `@uirouter/angular` versions 11.0.0 and 11.1.0](https://github.com/ui-router/angular/compare/11.0.0...11.1.0)
3+
4+
### Features
5+
6+
* Remove deprecated ANALYZE_FOR_ENTRY_COMPONENTS ([#982](https://github.com/ui-router/angular/issues/982))
7+
8+
### Bug Fixes
9+
10+
* test_downstream ([#983](https://github.com/ui-router/angular/issues/983)) ([bf45a80](https://github.com/ui-router/angular/commit/bf45a80))
11+
12+
113
# 11.0.0 (2023-01-10)
214
[Compare `@uirouter/angular` versions 10.0.0 and 11.0.0](https://github.com/ui-router/angular/compare/10.0.0...11.0.0)
315

@@ -177,7 +189,7 @@ There are some *BREAKING CHANGES*, see below.
177189
* **ivy:** Inject host UISref separately to account for behavior change in [@ContentChildren](https://github.com/ContentChildren) ([ebd2e40](https://github.com/ui-router/angular/commit/ebd2e40)), closes [/github.com/angular/angular/issues/8277#issuecomment-323678013](https://github.com//github.com/angular/angular/issues/8277/issues/issuecomment-323678013)
178190
* fix(angular8): Add static: true to ViewChild
179191
* fix(lazyLoad): Remove dependency on angular/router in favor of using ivy
180-
Ivy supports lazy loading of modules without depending on the ROUTES token from angular/router.
192+
Ivy supports lazy loading of modules without depending on the ROUTES token from angular/router.
181193

182194
### Features
183195

@@ -287,7 +299,7 @@ Migrate your `loadChildren`(s) to the `import()` style.
287299
### BREAKING CHANGES in rx
288300

289301
* **package:** this version of uirouter/rx depends on uirouter/core version 6 and greater.
290-
Because this package now provides an async resolve policy for Observables, this package now has a peerDependency on uirouter/core version >=6.0.0
302+
Because this package now provides an async resolve policy for Observables, this package now has a peerDependency on uirouter/core version >=6.0.0
291303

292304
# 4.0.0 (2019-06-14)
293305
[Compare `@uirouter/angular` versions 3.0.0 and 4.0.0](https://github.com/ui-router/angular/compare/3.0.0...4.0.0)
@@ -836,7 +848,7 @@ Now, the error is wrapped in a Rejection object.
836848

837849
```js
838850
.onError({}, (trans, err) =>
839-
err instanceof Rejection && err.detail === 'reject transition')
851+
err instanceof Rejection && err.detail === 'reject transition')
840852
```
841853

842854
- The Rejection object indicates the `.type` of transition rejection (ABORTED, ERROR, SUPERSEDED and/or redirection).
@@ -994,7 +1006,7 @@ export var futureFooState = {
9941006

9951007
  imports: [
9961008
    UIRouterModule.forRoot({ states: [ futureFooState  ] }),
997-
...
1009+
...
9981010
```
9991011

10001012
In your nested module, add a state named `foo` (without the `.**`). This
@@ -1017,7 +1029,7 @@ export var fooState = {
10171029

10181030
  imports: [
10191031
    UIRouterModule.forChild({ states: [ fooState ] }),
1020-
...
1032+
...
10211033
```
10221034

10231035
This change works by providing the same DI token as the `@angular/router`
@@ -1264,13 +1276,13 @@ More specific rules are preferred over less specific rules
12641276
It's possible to have multiple url rules that match a given URL.
12651277
Consider the following states:
12661278

1267-
- `{ name: 'books', url: '/books/index' }''`
1268-
- `{ name: 'book', url: '/books/:bookId' }''`
1279+
- `{ name: 'books', url: '/books/index' }''`
1280+
- `{ name: 'book', url: '/books/:bookId' }''`
12691281

12701282
Both states match when the url is `/books/index`.
12711283
Additionally, you might have some custom url rewrite rules such as:
12721284

1273-
`.when('/books/list', '/books/index')`.
1285+
`.when('/books/list', '/books/index')`.
12741286

12751287
The `book` state also matches when the rewrite rule is matched.
12761288

@@ -1321,7 +1333,7 @@ For backwards compatibility, register a sort function which sorts by the registr
13211333
myApp.config(function ($urlServiceProvider) {
13221334

13231335
function sortByRegistrationOrder(a, b) {
1324-
return a.$id - b.$id;
1336+
return a.$id - b.$id;
13251337
}
13261338

13271339
$urlServiceProvider.rules.sort(sortByRegistrationOrder);
@@ -1351,9 +1363,9 @@ If you rely on the previous encoding, create a custom parameter type that implem
13511363
```js
13521364
urlMatcherFactory.type('tildes', {
13531365
encode: (val: any) =>
1354-
val != null ? val.toString().replace(/(~|\/)/g, m => ({ '~': '~~', '/': '~2F' }[m])) : val;
1366+
val != null ? val.toString().replace(/(~|\/)/g, m => ({ '~': '~~', '/': '~2F' }[m])) : val;
13551367
decode: (val: string) =>
1356-
val != null ? val.toString().replace(/(~~|~2F)/g, m => ({ '~~': '~', '~2F': '/' }[m])) : val;
1368+
val != null ? val.toString().replace(/(~~|~2F)/g, m => ({ '~~': '~', '~2F': '/' }[m])) : val;
13571369
pattern: /[^/]*/
13581370
});
13591371
```
@@ -1463,28 +1475,28 @@ Major breaking changes for Angular 2 bootstrap between beta.2 and beta.3
14631475
- See https://ui-router.github.io/docs/latest/classes/ng2.uiroutermodule.html
14641476

14651477
@NgModule({
1466-
imports: [
1467-
UIRouterModule.forRoot({
1468-
states: INITIAL_STATES,
1469-
useHash: true,
1470-
configClass: MyUIRouterConfig
1471-
}),
1472-
BrowserModule,
1473-
FeatureModule,
1474-
],
1475-
declarations: INITIAL_COMPONENTS
1478+
imports: [
1479+
UIRouterModule.forRoot({
1480+
states: INITIAL_STATES,
1481+
useHash: true,
1482+
configClass: MyUIRouterConfig
1483+
}),
1484+
BrowserModule,
1485+
FeatureModule,
1486+
],
1487+
declarations: INITIAL_COMPONENTS
14761488
})
14771489
class RootAppModule {}
14781490

14791491
@NgModule({
1480-
imports: [
1481-
UIRouterModule.forChild({
1482-
states: FEATURE_STATES,
1483-
configClass: FeatureConfig
1484-
}),
1485-
CommonModule,
1486-
],
1487-
declarations: FEATURE_COMPONENTS
1492+
imports: [
1493+
UIRouterModule.forChild({
1494+
states: FEATURE_STATES,
1495+
configClass: FeatureConfig
1496+
}),
1497+
CommonModule,
1498+
],
1499+
declarations: FEATURE_COMPONENTS
14881500
})
14891501

14901502

@@ -1603,16 +1615,16 @@ This list is extensive, but typical users won't be affected by most of these cha
16031615
The most common breaks will be #1 and #2
16041616

16051617
1) BC-BREAK: renamed all Ui* (lowercase 'i') symbols to UI* (uppercase 'I') for more consistent naming.
1606-
- UiView -> UIView
1607-
- UiSref -> UISref (and related directives)
1608-
- UiInjector -> UIInjector
1618+
- UiView -> UIView
1619+
- UiSref -> UISref (and related directives)
1620+
- UiInjector -> UIInjector
16091621

16101622
2) BC-BREAK: Transition Hooks are no longer injected (onBefore/onStart/onExit/onRetain/onEnter/onFinish/onSuccess/onError)
16111623

16121624
Previously, a hook like `['$state', ($state) => $state.target('foo')]` would get `$state` injected.
16131625
Now, all hooks receive two parameters:
1614-
- transition: the current Transition, which has an `injector()` function
1615-
- state: for onEnter/onRetain/onExit hooks only, the State which the hook is being run for. This value will be null for onBefore/onStart/onFinish/onSuccess/onError hooks.
1626+
- transition: the current Transition, which has an `injector()` function
1627+
- state: for onEnter/onRetain/onExit hooks only, the State which the hook is being run for. This value will be null for onBefore/onStart/onFinish/onSuccess/onError hooks.
16161628

16171629
Refactor your hooks
16181630
from: `['$state', 'mySvc', ($state, mySvc) => mySvc.foo() ? $state.target('foo')] : true`
@@ -1632,7 +1644,7 @@ The most common breaks will be #1 and #2
16321644

16331645
8) BC-BREAK: remove support for `JIT` resolves. This also eliminated the need for the `loadAllControllerLocals` hook which was also removed
16341646

1635-
9) BC-BREAK: Replaced `ViewConfig.node` with `ViewConfig.path`. Angular 1's `$(element).data('$uiView')` is affected.
1647+
9) BC-BREAK: Replaced `ViewConfig.node` with `ViewConfig.path`. Angular 1's `$(element).data('$uiView')` is affected.
16361648
Previously the .node was the node for the view. Now the last element in the path is the node for the view.
16371649

16381650
10) BC-BREAK: Nodes no longer have (stateful) `.resolveContext` properties. Instead, a new ResolveContext is wrapped over a Path of Nodes.  Removed `PathFactory.bindResolveContexts()`.
@@ -1850,11 +1862,11 @@ This is a maintenance release which fixes a few known bugs introduced in 0.2.16.
18501862

18511863
#### Bug Fixes
18521864

1853-
* **$state:**
1865+
* **$state:**
18541866
* statechangeCancel: Avoid infinite digest in .otherwise/redirect case. Don't clobber url if a new transition has started. Closes #222 ([e00aa695](https://github.com/angular-ui/ui-router/commit/e00aa695e41ddc5ebd5d2b226aa0917a751b11aa), closes [#2238](https://github.com/angular-ui/ui-router/issues/2238))
18551867
* transitionTo: Allow hash (#) value to be read as toParams['#'] in events. Re-add the saved hash before broadcasting $stateChangeStart event. ([8c1bf30d](https://github.com/angular-ui/ui-router/commit/8c1bf30d2a3b78ba40b330f12d854c885d6cc117))
18561868
* **$stateParams:** Fix for testing: reset service instance between tests ([2aeb0c4b](https://github.com/angular-ui/ui-router/commit/2aeb0c4b205baf6cfa2ef25bb986bb160dc13bf9))
1857-
* **$urlRouter:**
1869+
* **$urlRouter:**
18581870
* Sort URL rules by specificity. Potential minor BC if apps were relying on rule registration order. ([b5c57c8e](https://github.com/angular-ui/ui-router/commit/b5c57c8ec2e14e17e75104c1424654f126ea4011))
18591871
* Use $sniffer for pushstate compat check ([c219e801](https://github.com/angular-ui/ui-router/commit/c219e801797f340ef9c5c919ab890ef003a7a042))
18601872
* **UrlMatcher:**
@@ -1865,11 +1877,11 @@ This is a maintenance release which fixes a few known bugs introduced in 0.2.16.
18651877
* include the slash when recognizing squashed params in url ([b5130bb1](https://github.com/angular-ui/ui-router/commit/b5130bb1215e15f832ea6daa670410b9a950c0d4), closes [#2064](https://github.com/angular-ui/ui-router/issues/2064))
18661878
* Allow url query param names to contain periods ([d31b3337](https://github.com/angular-ui/ui-router/commit/d31b3337cc2ce71d87c92fdded629e46558d0b49))
18671879
* **reloadOnSearch:** Update `locals.globals.$stateParams` when reloadOnSearch=false ([350d3e87](https://github.com/angular-ui/ui-router/commit/350d3e87783a2263fd7d23913da34f1268c3300b), closes [#2356](https://github.com/angular-ui/ui-router/issues/2356))
1868-
* **ui-view:**
1880+
* **ui-view:**
18691881
* fix $animate usage for ng 1.4+ ([9b6d9a2d](https://github.com/angular-ui/ui-router/commit/9b6d9a2d0ce4ae08384165cb517bddea59b67892))
18701882
* change $viewContentLoading to pair with $viewContentLoaded ([f9b43d66](https://github.com/angular-ui/ui-router/commit/f9b43d66833f0e17de41fd8d1cc3b491e3ba4a0e), closes [#685](https://github.com/angular-ui/ui-router/issues/685))
18711883
* $destroy event is triggered before animation ends ([1be13795](https://github.com/angular-ui/ui-router/commit/1be13795686ab78abb2d5094bc8addcacb928975))
1872-
* **uiSref:**
1884+
* **uiSref:**
18731885
* Ensure URL once param checks pass ([9dc31c54](https://github.com/angular-ui/ui-router/commit/9dc31c5465328e5666468b0c2319ce205f4b72f8), closes [#2091](https://github.com/angular-ui/ui-router/issues/2091))
18741886
* uiSrefActive: update the active classes after linking directive ([7c914030](https://github.com/angular-ui/ui-router/commit/7c914030f13e05e45a941c1b723cb785db729890))
18751887

@@ -2058,7 +2070,7 @@ This release includes a lot of bug fixes around default/optional and typed param
20582070
* allow prevent syncUrl on failure ([753060b9](https://github.com/angular-ui/ui-router/commit/753060b910d5d2da600a6fa0757976e401c33172))
20592071
* **typescript:** Add typescript definitions for component builds ([521ceb3f](https://github.com/angular-ui/ui-router/commit/521ceb3fd7850646422f411921e21ce5e7d82e0f))
20602072
* **uiSref:** extend syntax for ui-sref ([71cad3d6](https://github.com/angular-ui/ui-router/commit/71cad3d636508b5a9fe004775ad1f1adc0c80c3e))
2061-
* **uiSrefActive:**
2073+
* **uiSrefActive:**
20622074
* Also activate for child states. ([bf163ad6](https://github.com/angular-ui/ui-router/commit/bf163ad6ce176ce28792696c8302d7cdf5c05a01), closes [#818](https://github.com/angular-ui/ui-router/issues/818))
20632075
* **BREAKING CHANGE** Since ui-sref-active now activates even when child states are active you may need to swap out your ui-sref-active with ui-sref-active-eq, thought typically we think devs want the auto inheritance.
20642076

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@uirouter/angular",
33
"description": "State-based routing for Angular",
4-
"version": "11.0.0",
4+
"version": "11.1.0",
55
"scripts": {
66
"clean": "shx rm -rf lib lib-esm _bundles _doc dist",
77
"compile": "npm run clean && ngc",

0 commit comments

Comments
 (0)