Skip to content

Commit cd6a2a2

Browse files
Prep for 1.0.0-beta.3 release
Update changelog for 1.0.0-beta.3 Closes angular-ui#3024 Closes angular-ui#3026
1 parent 32f718a commit cd6a2a2

File tree

4 files changed

+83
-4
lines changed

4 files changed

+83
-4
lines changed

CHANGELOG.md

+70
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,73 @@
1+
<a name="1.0.0-beta.3"></a>
2+
# [1.0.0-beta.3](https://github.com/angular-ui/ui-router/compare/1.0.0-beta.2...v1.0.0-beta.3) (2016-09-23)
3+
4+
[Read more on the blog](https://ui-router-github.io/uirouter-1.0.0-beta.3/)
5+
6+
This release adds Angular 2.0.0 final support.
7+
It changes the NgModule mechanism to use `UIRouterModule.forRoot()` and `UIRouterModule.forChild()`.
8+
See the blog and the breaking changes section.
9+
10+
### Bug Fixes
11+
12+
This release fixes bugs for both ng1 and ng2
13+
14+
* **common:** Remove `url()` from LocationService interface ([#2990](https://github.com/angular-ui/ui-router/issues/2990)) ([d6c2580](https://github.com/angular-ui/ui-router/commit/d6c2580))
15+
* **lazyLoad:** Always delete the lazy load promise after it settles. ([dd2f101](https://github.com/angular-ui/ui-router/commit/dd2f101))
16+
* **ng1.StateProvider:** Export StateProvider class so type can be used ([167770d](https://github.com/angular-ui/ui-router/commit/167770d))
17+
* **ng1.uiView:** Remove deprecated jquery functions bind/unbind in favor of on/off ([60ebd44](https://github.com/angular-ui/ui-router/commit/60ebd44))
18+
* **ng2:** Angular 2.0.0 final compatibility ([7c54b75](https://github.com/angular-ui/ui-router/commit/7c54b75)), closes [#2991](https://github.com/angular-ui/ui-router/issues/2991)
19+
* **ng2.NgModule:** Allow apps with no forChild modules ([d3bd332](https://github.com/angular-ui/ui-router/commit/d3bd332)), closes [#3009](https://github.com/angular-ui/ui-router/issues/3009)
20+
* **ng2.uiView:** Use ReflectorReader to get component inputs
21+
* **resolve:** Don't re-resolve data when redirected to same state, but only dynamic params changed. ([98cd2d2](https://github.com/angular-ui/ui-router/commit/98cd2d2)), closes [#3033](https://github.com/angular-ui/ui-router/issues/3033)
22+
* **trace:** Show function definition during logging of trace.enable('HOOK') ([190d122](https://github.com/angular-ui/ui-router/commit/190d122))
23+
* **transition:** Fail a transition if a new one has started while resolves are loading ([bc87d9e](https://github.com/angular-ui/ui-router/commit/bc87d9e)), closes [#2972](https://github.com/angular-ui/ui-router/issues/2972)
24+
* **urlMatcherFactory:** fix tilde edge case with "string" encoding ([#3018](https://github.com/angular-ui/ui-router/issues/3018)) ([a201906](https://github.com/angular-ui/ui-router/commit/a201906))
25+
* **viewService:** Allow root ui-view to be wrapped in ng-if ([32f718a](https://github.com/angular-ui/ui-router/commit/32f718a)), closes [#3004](https://github.com/angular-ui/ui-router/issues/3004)
26+
27+
### Features
28+
29+
* **StateBuilder:** Calculate parent state name when ends in two wildcards `**` ([b4621f3](https://github.com/angular-ui/ui-router/commit/b4621f3))
30+
31+
32+
### BREAKING CHANGES
33+
34+
* Remove `UIInjector.native` infavor of `UIInjector.getNative()` ([d11b7dc](https://github.com/angular-ui/ui-router/commit/d11b7dc))
35+
* Remove `stateProvider` from ui-router-core. Use `stateRegistry` and `stateService` in 88c6494
36+
37+
#### Angular 2
38+
39+
Major breaking changes for Angular 2 bootstrap between beta.2 and beta.3
40+
41+
- Removed `@UIRouterModule` decorator.
42+
- Added `UIRouterModule.forRoot()` and `UIRouterModule.forChild()` factory methods
43+
- See https://ui-router.github.io/docs/latest/classes/ng2.uiroutermodule.html
44+
45+
@NgModule({
46+
imports: [
47+
UIRouterModule.forRoot({
48+
states: INITIAL_STATES,
49+
useHash: true,
50+
configClass: MyUIRouterConfig
51+
}),
52+
BrowserModule,
53+
FeatureModule,
54+
],
55+
declarations: INITIAL_COMPONENTS
56+
})
57+
class RootAppModule {}
58+
59+
@NgModule({
60+
imports: [
61+
UIRouterModule.forChild({
62+
states: FEATURE_STATES,
63+
configClass: FeatureConfig
64+
}),
65+
CommonModule,
66+
],
67+
declarations: FEATURE_COMPONENTS
68+
})
69+
70+
171
<a name="1.0.0-beta.2"></a>
272
# [1.0.0-beta.2](https://github.com/angular-ui/ui-router/compare/1.0.0-alpha.5...v1.0.0-beta.2) (2016-09-09)
373

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"version": "1.0.0-beta.3",
55
"scripts": {
66
"test": "npm run test:integrate",
7+
"build": "node ./scripts/package.js core && node ./scripts/package.js ng1 && node ./scripts/package.js ng2",
78
"watch": "node_modules/watch/cli.js 'npm run test' src test",
89
"test:core": "karma start config/karma.core.js",
910
"debug:core": "karma start config/karma.core.js --singleRun=false --browsers=Chrome --autoWatch=true --autoWatchInterval=1",
@@ -15,7 +16,6 @@
1516
"test:ng14": "karma start config/karma.ng14.js",
1617
"test:ng15": "karma start config/karma.ng15.js",
1718
"test:integrate": "tsc && npm run test:core && npm run test:ng12 && npm run test:ng13 && npm run test:ng14 && npm run test:ng15",
18-
"build": "node ./scripts/package.js core && node ./scripts/package.js ng1 && node ./scripts/package.js ng2",
1919
"docs": "./scripts/docs.sh"
2020
},
2121
"homepage": "https://ui-router.github.io",

scripts/docs.sh

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/sh
22
SCRIPTDIR=`dirname $0`;
33
BASEDIR="$SCRIPTDIR/..";
4+
5+
pushd $BASEDIR;
6+
typings install --global dt~es6-shim
7+
typings install --global dt~angular
8+
typings install --global dt~jquery
9+
popd
10+
411
$BASEDIR/node_modules/typedoc/bin/typedoc $* \
512
--experimentalDecorators \
613
--readme $BASEDIR/README.md \
@@ -10,4 +17,6 @@ $BASEDIR/node_modules/typedoc/bin/typedoc $* \
1017
--module commonjs \
1118
--target es5 \
1219
--out $BASEDIR/_doc \
13-
$BASEDIR/src $BASEDIR/typings/es6-shim/es6-shim.d.ts $BASEDIR/typings/angularjs/angular.d.ts
20+
$BASEDIR/src $BASEDIR/typings/index.d.ts
21+
22+
rm -rf $BASEDIR/typings

src/ng1/directives/viewDirective.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -450,5 +450,5 @@ function registerControllerCallbacks($transitions: TransitionService, controller
450450
}
451451
}
452452

453-
angular.module('ui.router.state').directive('uiView', uiView);
454-
angular.module('ui.router.state').directive('uiView', $ViewDirectiveFill);
453+
angular.module('ui.router.state').directive('uiView', <any> uiView);
454+
angular.module('ui.router.state').directive('uiView', <any> $ViewDirectiveFill);

0 commit comments

Comments
 (0)