Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.

Commit fc2ef76

Browse files
Merge branch 'master' into patch-1
2 parents a8be709 + 5fb93d0 commit fc2ef76

File tree

101 files changed

+21867
-12641
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+21867
-12641
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# common
22
node_modules
33
bower_components
4+
yarn-error.log
5+
46
.DS_Store
57
*~
68
**/.*
@@ -13,8 +15,6 @@ idea-out
1315

1416
# generated files
1517
_doc
16-
.testlib
1718
lib
1819
lib-esm
1920
release
20-
stats.html

.prettierignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package.json
2+
bower.json
3+
CHANGELOG.md
4+
test/**/angular.js
5+
test/**/angular-mocks.js
6+
test/**/angular-animate.js

.prettierrc.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"printWidth": 120
5+
}

.travis.yml

Lines changed: 20 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,28 @@
11
language: node_js
2-
node_js:
3-
- "6.9.2"
4-
5-
#cache:
6-
# directories:
7-
# - $HOME/.npm
8-
# - $HOME/.yarn-cache
9-
# - node_modules
10-
2+
node_js: 8.9.1
113
before_install:
12-
- time npm i -g yarn
13-
14-
install:
15-
- time yarn > /dev/null
16-
17-
before_script:
18-
- export DISPLAY=:99.0
19-
- sh -e /etc/init.d/xvfb start
20-
- ./nodeserver.sh > /dev/null &
21-
4+
- sh -e /etc/init.d/xvfb start
5+
- export PATH=$HOME/.yarn/bin:$PATH
6+
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.5.1
227
script:
23-
- echo "CORE_BRANCH = x${CORE_BRANCH}x";
24-
# Fetch and build the @uirouter/core branch from github, then install it
25-
- >
26-
if [ "x${CORE_BRANCH}x" != "xx" ] ; then
27-
echo "Installing @uirouter/core from ${CORE_BRANCH}" && \
28-
git clone --depth=10 --branch="${CORE_BRANCH}" https://github.com/ui-router/core.git @uirouter/core && \
29-
pushd @uirouter/core && \
30-
yarn > /dev/null && \
31-
yarn build && \
32-
popd && \
33-
npm install ./@uirouter/core ;
34-
fi
35-
- tsc && npm test
36-
37-
matrix:
38-
allow_failures:
39-
- env: CORE_BRANCH=
40-
8+
- if [ "x${CORE_BRANCH}x" != "xx" ]; then npx publish_yalc_package .downstream_cache/core https://github.com/ui-router/core.git && yalc add @uirouter/core ; fi
9+
- tsc &&
10+
yarn test &&
11+
yarn docs &&
12+
yarn test:downstream
4113
env:
4214
matrix:
43-
# CORE_BRANCH env variable specifies the branch of @uirouter/core to use during build/test
44-
# Each CORE_BRANCH listed here will trigger a SEPARATE job in travis
45-
- CORE_BRANCH=master
46-
47-
# If CORE_BRANCH is empty, it will use the @uirouter/core from npm dependencies
48-
# (as specified in package.json)
49-
- CORE_BRANCH=
50-
15+
- CORE_BRANCH=
16+
- CORE_BRANCH=master UPSTREAM_PKGS=@uirouter/core
17+
notifications:
18+
slack:
19+
on_success: never
20+
rooms:
21+
secure: alXA+pERLtF4DNctl+WaISO3uzUA/JzVCzSrDlNsV9Jvx1HdAqRNbrrnNYzCZBIU6OOv5YBGFbq79v5NPKzMPzoR8dp3PahlxRgucxALweoTCXY5DuDHVSI9ULLl2PND7QOfKyUALuAz5nmT7omPVxRKCpBkVsqewLfMeW1MRgE=
5122
sudo: false
52-
5323
git:
5424
depth: 3
55-
56-
notifications:
57-
slack: angularbuddies:b6leQM9gkBCW0S7MNDsELpqU
25+
cache:
26+
directories:
27+
- node_modules
28+
- ".downstream_cache"

CHANGELOG.md

Lines changed: 137 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,140 @@
1+
## 1.0.17 (2018-05-13)
2+
[Compare `@uirouter/angularjs` versions 1.0.16 and 1.0.17](https://github.com/angular-ui/ui-router/compare/1.0.16...1.0.17)
3+
4+
5+
### Updated `@uirouter/core` from 5.0.18 to 5.0.19
6+
[Compare `@uirouter/core` versions 5.0.18 and 5.0.19](https://github.com/ui-router/core/compare/5.0.18...5.0.19)
7+
8+
### Bug Fixes
9+
10+
* **enums:** Workaround angular compiler export issue https://github.com/angular/angular/issues/23759 ([38d25fa](https://github.com/ui-router/core/commit/38d25fa))
11+
12+
## 1.0.16 (2018-05-03)
13+
[Compare `@uirouter/angularjs` versions 1.0.15 and 1.0.16](https://github.com/angular-ui/ui-router/compare/1.0.15...1.0.16)
14+
15+
### Bug Fixes
16+
17+
* **docs:** downgrade to [@types](https://github.com/types)/angular[@1](https://github.com/1).6.25 to fix typings error when generating docs ([5850136](https://github.com/angular-ui/ui-router/commit/5850136))
18+
19+
20+
### Updated `@uirouter/core` from 5.0.17 to 5.0.18
21+
[Compare `@uirouter/core` versions 5.0.17 and 5.0.18](https://github.com/ui-router/core/compare/5.0.17...5.0.18)
22+
23+
### Bug Fixes
24+
25+
* **angular:** A hack to force the Angular compiler to import from module index ([d56a2be](https://github.com/ui-router/core/commit/d56a2be))
26+
* **StateRegistry:** Notify listeners of added states when there are orphans in the state queue ([5a9bac9](https://github.com/ui-router/core/commit/5a9bac9))
27+
* **transition:** Fix typing of Transition.params() ([ebea30e](https://github.com/ui-router/core/commit/ebea30e))
28+
* **transition:** Normalize `error()` to always return `Rejection` ([9bcc5db](https://github.com/ui-router/core/commit/9bcc5db))
29+
30+
## 1.0.15 (2018-02-12)
31+
[Compare `@uirouter/angularjs` versions 1.0.14 and 1.0.15](https://github.com/angular-ui/ui-router/compare/1.0.14...1.0.15)
32+
33+
### Bug Fixes
34+
35+
* **package:** update [@uirouter](https://github.com/uirouter)/core to version 5.0.17 ([1b54264](https://github.com/angular-ui/ui-router/commit/1b54264))
36+
37+
38+
### Updated `@uirouter/core` from 5.0.16 to 5.0.17
39+
[Compare `@uirouter/core` versions 5.0.16 and 5.0.17](https://github.com/ui-router/core/compare/5.0.16...5.0.17)
40+
41+
### Bug Fixes
42+
43+
* **core:** Fix leak of old transitions by mutating pathnode*.resolvables*.data ([0a1f518](https://github.com/ui-router/core/commit/0a1f518))
44+
45+
## 1.0.14 (2018-01-31)
46+
[Compare `@uirouter/angularjs` versions 1.0.13 and 1.0.14](https://github.com/angular-ui/ui-router/compare/1.0.13...1.0.14)
47+
48+
### Bug Fixes
49+
50+
* **uiSrefActive:** don't match fuzzy on lazy loaded future states ([01430ee](https://github.com/angular-ui/ui-router/commit/01430ee))
51+
52+
53+
### Features
54+
55+
* **uiSrefActive:** Support arrays of globs for ng-class style ([b215343](https://github.com/angular-ui/ui-router/commit/b215343))
56+
57+
58+
### Updated `@uirouter/core` from 5.0.14 to 5.0.16
59+
[Compare `@uirouter/core` versions 5.0.14 and 5.0.16](https://github.com/ui-router/core/compare/5.0.14...5.0.16)
60+
61+
### Bug Fixes
62+
63+
* **common:** Fix signature of for objects (make target optional) ([61d0afc](https://github.com/ui-router/core/commit/61d0afc))
64+
* **core:** Fix memory leak of resolve data from ALL transitions ever ([7f2aed1](https://github.com/ui-router/core/commit/7f2aed1))
65+
* **pathNode:** add backwards compat for PathNode.clone(). Add retainedWithToParams to treeChanges interface. ([4833a32](https://github.com/ui-router/core/commit/4833a32))
66+
67+
68+
### Features
69+
70+
* **common:** Add map-in-place support to map() ([12bc7d8](https://github.com/ui-router/core/commit/12bc7d8))
71+
* **common:** Add onEvict() callback registry for queues with max length ([c19d007](https://github.com/ui-router/core/commit/c19d007))
72+
73+
## 1.0.13 (2018-01-10)
74+
[Compare `@uirouter/angularjs` versions 1.0.12 and 1.0.13](https://github.com/angular-ui/ui-router/compare/1.0.12...1.0.13)
75+
76+
77+
### Updated `@uirouter/core` from 5.0.13 to 5.0.14
78+
[Compare `@uirouter/core` versions 5.0.13 and 5.0.14](https://github.com/ui-router/core/compare/5.0.13...5.0.14)
79+
80+
### Bug Fixes
81+
82+
* **trace:** Fix null reference in uiview name sort function ([59cb067](https://github.com/ui-router/core/commit/59cb067))
83+
* **treeChanges:** apply toParams to 'retained' path ([#72](https://github.com/ui-router/core/issues/72)) ([cf63d11](https://github.com/ui-router/core/commit/cf63d11))
84+
85+
## 1.0.12 (2017-12-22)
86+
[Compare `@uirouter/angularjs` versions 1.0.11 and 1.0.12](https://github.com/angular-ui/ui-router/compare/1.0.11...1.0.12)
87+
88+
### Bug Fixes
89+
90+
* **___location:** allow empty string param: Ng1LocationServices.url('') ([01bbaf0](https://github.com/angular-ui/ui-router/commit/01bbaf0))
91+
* **onEnter:** Do not inject child-state data into ng1 onEnter hooks ([cdec6a0](https://github.com/angular-ui/ui-router/commit/cdec6a0))
92+
* **package:** update [@uirouter](https://github.com/uirouter)/core to version 5.0.13 ([6c63f2d](https://github.com/angular-ui/ui-router/commit/6c63f2d))
93+
* **travis:** regenerate and encrypt secret ([c718ce5](https://github.com/angular-ui/ui-router/commit/c718ce5))
94+
95+
96+
### Updated `@uirouter/core` from 5.0.11 to 5.0.13
97+
[Compare `@uirouter/core` versions 5.0.11 and 5.0.13](https://github.com/ui-router/core/compare/5.0.11...5.0.13)
98+
99+
### Bug Fixes
100+
101+
* **browserLocation:** Use ___location.pathname (not href) or '/' when no base tag found ([db461d6](https://github.com/ui-router/core/commit/db461d6))
102+
* **browserLocationConfig:** If no base href found, use ___location.href (not empty string) ([0251424](https://github.com/ui-router/core/commit/0251424))
103+
* **pushStateLocation:** Fix URLs: add slash between base and path when necessary ([bfa5755](https://github.com/ui-router/core/commit/bfa5755))
104+
* **pushStateLocation:** When url is "" or "/", use baseHref for ___pushState ([042a950](https://github.com/ui-router/core/commit/042a950))
105+
* **resolve:** Add onFinish hook to resolve any dynamicly added resolvables ([7d1ca54](https://github.com/ui-router/core/commit/7d1ca54))
106+
* **urlRouter:** Update query params when resetting url via .update() ([7664cd0](https://github.com/ui-router/core/commit/7664cd0))
107+
108+
109+
### Features
110+
111+
* **view:** Add onSync callback API to plugin API ([9544ae5](https://github.com/ui-router/core/commit/9544ae5))
112+
113+
## 1.0.11 (2017-11-13)
114+
[Compare `@uirouter/angularjs` versions 1.0.10 and 1.0.11](https://github.com/angular-ui/ui-router/compare/1.0.10...1.0.11)
115+
116+
### Bug Fixes
117+
118+
* **uiView:** Fix cfg.getTemplate is undefined ([f4d99b0](https://github.com/angular-ui/ui-router/commit/f4d99b0))
119+
120+
## 1.0.10 (2017-10-18)
121+
[Compare `@uirouter/angularjs` versions 1.0.9 and 1.0.10](https://github.com/angular-ui/ui-router/compare/1.0.9...1.0.10)
122+
123+
### Bug Fixes
124+
125+
* **artifactory:** Add trailing newline to package.json to work around artifactory issue ([#3551](https://github.com/angular-ui/ui-router/issues/3551)) ([d09a345](https://github.com/angular-ui/ui-router/commit/d09a345)), closes [#3550](https://github.com/angular-ui/ui-router/issues/3550)
126+
127+
## 1.0.9 (2017-10-17)
128+
[Compare `@uirouter/angularjs` versions 1.0.8 and 1.0.9](https://github.com/angular-ui/ui-router/compare/1.0.8...1.0.9)
129+
130+
131+
### Updated `@uirouter/core` from 5.0.10 to 5.0.11
132+
[Compare `@uirouter/core` versions 5.0.10 and 5.0.11](https://github.com/ui-router/core/compare/5.0.10...5.0.11)
133+
134+
### Bug Fixes
135+
136+
* **ie9:** make console.bind work in ie9 ([#85](https://github.com/ui-router/core/issues/85)) ([318214b](https://github.com/ui-router/core/commit/318214b))
137+
1138
## 1.0.8 (2017-10-07)
2139
[Compare `@uirouter/angularjs` versions 1.0.7 and 1.0.8](https://github.com/angular-ui/ui-router/compare/1.0.7...1.0.8)
3140

ISSUE_TEMPLATE.md

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,40 @@
11
This issue tracker is for Bug Reports and Feature Requests only.
2-
Please direct requests for help to StackOverflow. See http://bit.ly/UIR-SOF for details.
32

4-
This is a:
3+
Please direct requests for help to StackOverflow.
4+
See http://bit.ly/UIR-SOF for details.
5+
6+
This is a (check one box):
57

68
- [ ] Bug Report
79
- [ ] Feature Request
810
- [ ] General Query
911

10-
My version of UI-Router is: (version)
12+
My version of UI-Router is: (type version)
1113

1214

1315

1416
# Bug Report
1517

1618
#### Current Behavior:
1719

18-
(current behavior here)
20+
(type current behavior here)
1921

2022
#### Expected Behavior:
2123

22-
(expected behavior here)
24+
(type expected behavior here)
2325

24-
#### Link to Plunker that reproduces the issue:
26+
#### Link to Plunker or stackblitz that reproduces the issue:
2527

26-
http://bit.ly/UIR-Plunk
28+
( if you want a response to your issue, provide a way to reproduce it )
29+
( http://bit.ly/UIR-Plunk1 )
30+
( https://stackblitz.com/edit/ui-router-angularjs )
2731

2832

2933

3034

3135
# Feature Request
3236

33-
(feature request here)
37+
(type feature request here)
3438

3539

3640

@@ -41,7 +45,7 @@ Please direct general implementation questions to StackOverflow:
4145
http://stackoverflow.com/questions/ask?tags=angularjs,angular-ui-router
4246

4347
Please review the Sample Application which highlights common approaches:
44-
https://github.com/ui-router/sample-app-ng1
48+
https://github.com/ui-router/sample-app-angularjs
4549

4650
- [ ] I have already asked my question on StackOverflow and nobody could answer the question
4751

@@ -50,4 +54,4 @@ https://github.com/ui-router/sample-app-ng1
5054
- [ ] I believe my question can only be answered by the UI-Router maintainers
5155

5256

53-
(general query here)
57+
(type general query here)

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License
22

3-
Copyright (c) 2013-2015 The AngularUI Team, Karsten Sperling
3+
Copyright (c) 2013-2018 The AngularUI Team, Karsten Sperling
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# AngularUI Router  [![Build Status](https://travis-ci.org/angular-ui/ui-router.svg?branch=master)](https://travis-ci.org/angular-ui/ui-router)
22

3+
[![Greenkeeper badge](https://badges.greenkeeper.io/angular-ui/ui-router.svg)](https://greenkeeper.io/)
4+
35
**Note: this is the Angular 1.x source for UI-Router version 1.0. If you are looking for the source for UI-Router
46
version 0.2.x, it can be found [here](https://github.com/angular-ui/ui-router/tree/legacy)**
57

bower.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,21 @@
1-
{"name":"angular-ui-router","description":"State-based routing for AngularJS","license":"MIT","main":"./release/angular-ui-router.js","dependencies":{"angular":">= 1.2.0"},"ignore":["**/.*","**/tsconfig.json","**/tsconfig.typedoc.json","**/webpack.config.js","**/node_modules","package.json","scripts","test","src"],"version":"1.0.8"}
1+
{
2+
"name": "angular-ui-router",
3+
"description": "State-based routing for AngularJS",
4+
"license": "MIT",
5+
"main": "./release/angular-ui-router.js",
6+
"dependencies": {
7+
"angular": ">= 1.2.0"
8+
},
9+
"ignore": [
10+
"**/.*",
11+
"**/tsconfig.json",
12+
"**/tsconfig.typedoc.json",
13+
"**/webpack.config.js",
14+
"**/node_modules",
15+
"package.json",
16+
"scripts",
17+
"test",
18+
"src"
19+
],
20+
"version": "1.0.17"
21+
}

downstream_projects.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"sample-app-angularjs": "https://github.com/ui-router/sample-app-angularjs.git",
3+
"typescript2.2": "./test/typescript2.2",
4+
"typescript2.3": "./test/typescript2.3",
5+
"typescript2.4": "./test/typescript2.4",
6+
"typescript2.5": "./test/typescript2.5",
7+
"typescript2.6": "./test/typescript2.6"
8+
}

0 commit comments

Comments
 (0)