Skip to content

Commit 77333c1

Browse files
Prep for release 0.2.16
1 parent 4c7b6a6 commit 77333c1

File tree

6 files changed

+54
-10
lines changed

6 files changed

+54
-10
lines changed

Diff for: CHANGELOG.md

+44
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,47 @@
1+
<a name="0.2.16"></a>
2+
### 0.2.16 (2016-01-24)
3+
4+
5+
#### Bug Fixes
6+
7+
* **$state:**
8+
* 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))
9+
* 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))
10+
* **$stateParams:** Fix for testing: reset service instance between tests ([2aeb0c4b](https://github.com/angular-ui/ui-router/commit/2aeb0c4b205baf6cfa2ef25bb986bb160dc13bf9))
11+
* **$urlRouter:**
12+
* 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))
13+
* Use $sniffer for pushstate compat check ([c219e801](https://github.com/angular-ui/ui-router/commit/c219e801797f340ef9c5c919ab890ef003a7a042))
14+
* **UrlMatcher:**
15+
* Properly encode/decode slashes in parameters Closes #2172 Closes #2250 Closes #1 ([02e98660](https://github.com/angular-ui/ui-router/commit/02e98660a80dfd1ca4b113dd24ee304af91e9f8c), closes [#2339](https://github.com/angular-ui/ui-router/issues/2339))
16+
* Array types: Fix default value for array query parameters. Pass empty arrays through in handler. ([20d6e243](https://github.com/angular-ui/ui-router/commit/20d6e243f1745ddbf257217245a1dc22eabe13da), closes [#2222](https://github.com/angular-ui/ui-router/issues/2222))
17+
* Remove trailing slash, if parameter is optional and was squashed from URL ([77fa11bf](https://github.com/angular-ui/ui-router/commit/77fa11bf0787d0f6da97ab0003ab29afb7411391), closes [#1902](https://github.com/angular-ui/ui-router/issues/1902))
18+
* Allow a parameter declaration to configure the parameter type by name. closes #2294 ([e4010249](https://github.com/angular-ui/ui-router/commit/e40102492d40fe1cf6ba14d955fcc9f345c16458))
19+
* 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))
20+
* Allow url query param names to contain periods ([d31b3337](https://github.com/angular-ui/ui-router/commit/d31b3337cc2ce71d87c92fdded629e46558d0b49))
21+
* **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))
22+
* **ui-view:**
23+
* fix $animate usage for ng 1.4+ ([9b6d9a2d](https://github.com/angular-ui/ui-router/commit/9b6d9a2d0ce4ae08384165cb517bddea59b67892))
24+
* 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))
25+
* $destroy event is triggered before animation ends ([1be13795](https://github.com/angular-ui/ui-router/commit/1be13795686ab78abb2d5094bc8addcacb928975))
26+
* **uiSref:**
27+
* 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))
28+
* uiSrefActive: update the active classes after linking directive ([7c914030](https://github.com/angular-ui/ui-router/commit/7c914030f13e05e45a941c1b723cb785db729890))
29+
30+
31+
#### Features
32+
33+
* **$IncludedByStateFilter:** add parameters to $IncludedByStateFilter ([963f6e71](https://github.com/angular-ui/ui-router/commit/963f6e71633b9c3a266f3991d79089b7d14786b4), closes [#1735](https://github.com/angular-ui/ui-router/issues/1735))
34+
* **isStateFilter:** Include optional state params. ([71d74699](https://github.com/angular-ui/ui-router/commit/71d7469987ee9ca86a41c8c6393ccd5d8913c3d6))
35+
* **$state:** make state data inheritance prototypical ([c4fec8c7](https://github.com/angular-ui/ui-router/commit/c4fec8c7998113902af4152d716c42dada6eb465))
36+
* **$stateChangeStart:** Add options to event ([a1f07559](https://github.com/angular-ui/ui-router/commit/a1f07559ec74e10ff80bc4be81f287e3772b8fcb))
37+
* **UrlMatcher:** Add param only type names ([6a371f9b](https://github.com/angular-ui/ui-router/commit/6a371f9b70e37a82eb324122879e4473c3f6d526))
38+
* **uiSrefActive:**
39+
* provide a ng-{class,style} like interface ([a9ff6feb](https://github.com/angular-ui/ui-router/commit/a9ff6febb469e0d5cd49054216c4472df7a6259d))
40+
* allow active & active-eq on same element ([d9a676ba](https://github.com/angular-ui/ui-router/commit/d9a676ba2c4d9e954be224c60496bcb38f6074e3))
41+
* **uiState:** add ui-state directive ([3831af1d](https://github.com/angular-ui/ui-router/commit/3831af1dc71b601351e6694af0665a77297f8f7f), closes [#395](https://github.com/angular-ui/ui-router/issues/395), [#900](https://github.com/angular-ui/ui-router/issues/900), [#1932](https://github.com/angular-ui/ui-router/issues/1932))
42+
* **urlMatcher:** add support for optional spaces in params ([4b7f3046](https://github.com/angular-ui/ui-router/commit/4b7f304617f0b3590b532103b5c2fb526c98a9e4))
43+
44+
145
<a name="0.2.15"></a>
246
### 0.2.15 (2015-05-19)
347

Diff for: Gruntfile.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,14 @@ module.exports = function (grunt) {
188188
var bower = grunt.file.readJSON('bower.json'),
189189
component = grunt.file.readJSON('component.json'),
190190
version = bower.version;
191-
if (version != grunt.config('pkg.version')) throw 'Version mismatch in bower.json';
192-
if (version != component.version) throw 'Version mismatch in component.json';
191+
if (version != grunt.config('pkg.version')) throw new Error('Version mismatch in bower.json');
192+
if (version != component.version) throw new Error('Version mismatch in component.json');
193193

194194
promising(this,
195195
ensureCleanMaster().then(function () {
196196
return exec('git tag -l \'' + version + '\'');
197197
}).then(function (result) {
198-
if (result.stdout.trim() !== '') throw 'Tag \'' + version + '\' already exists';
198+
if (result.stdout.trim() !== '') throw new Error('Tag \'' + version + '\' already exists');
199199
grunt.config('buildtag', '');
200200
grunt.config('builddir', 'release');
201201
})
@@ -225,7 +225,7 @@ module.exports = function (grunt) {
225225
grunt.log.write(result.stderr + result.stdout);
226226
}, function (error) {
227227
grunt.log.write(error.stderr + '\n');
228-
throw 'Failed to run \'' + cmd + '\'';
228+
throw new Error('Failed to run \'' + cmd + '\'');
229229
});
230230
}
231231

@@ -241,10 +241,10 @@ module.exports = function (grunt) {
241241

242242
function ensureCleanMaster() {
243243
return exec('git symbolic-ref HEAD').then(function (result) {
244-
if (result.stdout.trim() !== 'refs/heads/master') throw 'Not on master branch, aborting';
244+
if (result.stdout.trim() !== 'refs/heads/master') throw new Error('Not on master branch, aborting');
245245
return exec('git status --porcelain');
246246
}).then(function (result) {
247-
if (result.stdout.trim() !== '') throw 'Working copy is dirty, aborting';
247+
if (result.stdout.trim() !== '') throw new Error('Working copy is dirty, aborting');
248248
});
249249
}
250250
};

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
#### The de-facto solution to flexible routing with nested views
44
---
5-
**[Download 0.2.15](http://angular-ui.github.io/ui-router/release/angular-ui-router.js)** (or **[Minified](http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js)**) **|**
5+
**[Download 0.2.16](http://angular-ui.github.io/ui-router/release/angular-ui-router.js)** (or **[Minified](http://angular-ui.github.io/ui-router/release/angular-ui-router.min.js)**) **|**
66
**[Guide](https://github.com/angular-ui/ui-router/wiki) |**
77
**[API](http://angular-ui.github.io/ui-router/site) |**
88
**[Sample](http://angular-ui.github.com/ui-router/sample/) ([Src](https://github.com/angular-ui/ui-router/tree/gh-pages/sample)) |**

Diff for: bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-router",
3-
"version": "0.2.15",
3+
"version": "0.2.16",
44
"license" : "MIT",
55
"main": "./release/angular-ui-router.js",
66
"dependencies": {

Diff for: component.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-ui-router",
3-
"version": "0.2.15",
3+
"version": "0.2.16",
44
"description": "State-based routing for AngularJS",
55
"keywords": [
66
"angular",

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-ui-router",
33
"description": "State-based routing for AngularJS",
4-
"version": "0.2.15",
4+
"version": "0.2.16",
55
"homepage": "http://angular-ui.github.com/",
66
"contributors": [
77
{

0 commit comments

Comments
 (0)