Skip to content

Commit c22f694

Browse files
chore(*): rename ui-router-core to @uirouter/core
1 parent 1d865bc commit c22f694

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

CHANGELOG.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### ui-router-core changes
1+
### @uirouter/core changes
22
# [5.0.0](https://github.com/ui-router/core/compare/4.0.0...v5.0.0) (2017-04-21)
33

44

@@ -49,7 +49,7 @@
4949
#### Before:
5050

5151
```js
52-
import { State } from "ui-router-core";
52+
import { State } from "@uirouter/core";
5353
const match = { to: (state: State) => state.data.auth };
5454
transitionsvc.onEnter(match, (trans: Transition, state: State) => {
5555
// state is the internal State object
@@ -62,7 +62,7 @@ transitionsvc.onEnter(match, (trans: Transition, state: State) => {
6262
#### Now:
6363

6464
```js
65-
import { StateDeclaration } from "ui-router-core";
65+
import { StateDeclaration } from "@uirouter/core";
6666
const match = { to: (state: StateDeclaration) => state.data.auth };
6767
transitionsvc.onEnter(match, (trans: Transition, state: StateDeclaration) => {
6868
// state === the state object you registered
@@ -95,13 +95,13 @@ Low: Access to the internal api is still available using `$$state()`.
9595
#### Before:
9696

9797
```
98-
import {State} from "ui-router-core";
98+
import {State} from "@uirouter/core";
9999
```
100100

101101
#### Now:
102102

103103
```
104-
import {StateObject} from "ui-router-core";
104+
import {StateObject} from "@uirouter/core";
105105
```
106106

107107
#### Motivation:
@@ -283,7 +283,7 @@ register a `.onError` handler and filter/process accordingly.
283283

284284

285285

286-
### ui-router-core changes
286+
### @uirouter/core changes
287287
# [4.0.0](https://github.com/ui-router/core/compare/3.1.1...v4.0.0) (2017-01-22)
288288

289289

@@ -294,7 +294,7 @@ register a `.onError` handler and filter/process accordingly.
294294

295295
### Features
296296

297-
* **core:** Export all vanilla.* code from `ui-router-core` ([f3392d1](https://github.com/ui-router/core/commit/f3392d1))
297+
* **core:** Export all vanilla.* code from `@uirouter/core` ([f3392d1](https://github.com/ui-router/core/commit/f3392d1))
298298
* **globals:** Removed `UIRouterGlobals` interface. Renamed `Globals` class to `UIRouterGlobals` ([8719334](https://github.com/ui-router/core/commit/8719334))
299299

300300

@@ -333,7 +333,7 @@ Closes https://github.com/ui-router/core/issues/31
333333

334334

335335

336-
### ui-router-core changes
336+
### @uirouter/core changes
337337
## [3.1.1](https://github.com/ui-router/core/compare/3.1.0...v3.1.1) (2017-01-16)
338338

339339

@@ -351,7 +351,7 @@ Closes https://github.com/ui-router/core/issues/31
351351

352352

353353

354-
### ui-router-core changes
354+
### @uirouter/core changes
355355
# [3.1.0](https://github.com/ui-router/core/compare/3.0.0...v3.1.0) (2017-01-09)
356356

357357

@@ -361,7 +361,7 @@ Closes https://github.com/ui-router/core/issues/31
361361

362362

363363

364-
### ui-router-core changes
364+
### @uirouter/core changes
365365
# [3.0.0](https://github.com/ui-router/core/compare/2.0.0...3.0.0) (2017-01-08)
366366

367367

@@ -548,7 +548,7 @@ End users who were accessing `services.location` or `services.locationConfig` sh
548548

549549

550550

551-
### ui-router-core changes
551+
### @uirouter/core changes
552552
# [2.0.0](https://github.com/ui-router/core/compare/1.0.1...2.0.0) (2016-12-09)
553553

554554

@@ -629,9 +629,9 @@ $state.go('foo').catch(err => { if (err.detail === "Error 123") .. });
629629

630630
### Features
631631

632-
- This is the 1.0.0 release of ui-router-core.
633-
- We've moved ui-router-core to its new home at https://github.com/ui-router/core
634-
- ui-router-core will now follow SemVer.
632+
- This is the 1.0.0 release of @uirouter/core.
633+
- We've moved @uirouter/core to its new home at https://github.com/ui-router/core
634+
- @uirouter/core will now follow SemVer.
635635

636636
# BREAKING CHANGE
637637

@@ -674,7 +674,7 @@ This release fixes bugs for both ng1 and ng2
674674

675675
#### BC in Core
676676
* Remove `UIInjector.native` infavor of `UIInjector.getNative()` ([d11b7dc](https://github.com/angular-ui/ui-router/commit/d11b7dc))
677-
* Remove `stateProvider` from ui-router-core. Use `stateRegistry` and `stateService` in 88c6494
677+
* Remove `stateProvider` from @uirouter/core. Use `stateRegistry` and `stateService` in 88c6494
678678
* We now enforce states with an explicit `parent:` may NOT ALSO specify a parent state in their name (i.e., `parent.child`)
679679

680680
#### BC in Angular 2
@@ -766,7 +766,7 @@ class RootAppModule {}
766766
* **Trace:** Fix error in console after $trace.enable() ([013c77a](https://github.com/angular-ui/ui-router/commit/013c77a)), closes [#2752](https://github.com/angular-ui/ui-router/issues/2752)
767767
* **transitionHook:** Prevent queued hookFn to be called if deregistered ([#2939](https://github.com/angular-ui/ui-router/issues/2939)) ([39e1ba7](https://github.com/angular-ui/ui-router/commit/39e1ba7)), closes [#2928](https://github.com/angular-ui/ui-router/issues/2928)
768768
* **typescript:** Make UI-Router `noImplicitAny` safe. ([0769bc2](https://github.com/angular-ui/ui-router/commit/0769bc2)), closes [#2693](https://github.com/angular-ui/ui-router/issues/2693)
769-
* **typescript:** Remove angular1 specific types from ui-router-core methods ([30124bd](https://github.com/angular-ui/ui-router/commit/30124bd)), closes [#2693](https://github.com/angular-ui/ui-router/issues/2693)
769+
* **typescript:** Remove angular1 specific types from @uirouter/core methods ([30124bd](https://github.com/angular-ui/ui-router/commit/30124bd)), closes [#2693](https://github.com/angular-ui/ui-router/issues/2693)
770770

771771

772772
#### ng1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "ui-router-core",
2+
"name": "@uirouter/core",
33
"description": "UI-Router Core: Framework agnostic, State-based routing for JavaScript Single Page Apps",
44
"version": "5.0.0",
55
"scripts": {

src/state/interface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export type RedirectToResult = string | TargetState | { state?: string, params?:
116116
*
117117
* #### Example:
118118
* ```js
119-
* import { State } from "ui-router-core"
119+
* import { State } from "@uirouter/core"
120120
* import { FolderService } from "../folder.service"
121121
* // StateDeclaration class
122122
* @State()

src/state/stateObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class StateObject {
5252

5353
/**
5454
* The views for the state.
55-
* Note: `ui-router-core` does not register a builder for views.
55+
* Note: `@uirouter/core` does not register a builder for views.
5656
* The framework specific code should register a `views` builder.
5757
*/
5858
public views: { [key: string]: _ViewDeclaration; };

src/vanilla/injector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ let ARGUMENT_NAMES = /([^\s,]+)/g;
1919
* [angular 1 dependency injector](https://docs.angularjs.org/api/auto/service/$injector)
2020
*
2121
* UI-Router evolved from an angular 1 library to a framework agnostic library.
22-
* However, some of the `ui-router-core` code uses these ng1 style APIs to support ng1 style dependency injection.
22+
* However, some of the `@uirouter/core` code uses these ng1 style APIs to support ng1 style dependency injection.
2323
*
2424
* This object provides a naive implementation of a globally scoped dependency injection system.
2525
* It supports the following DI approaches:

src/vanilla/q.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import { isArray, isObject, $QLike } from "../common/index";
1212
* [angular 1 promise api](https://docs.angularjs.org/api/ng/service/$q)
1313
*
1414
* UI-Router evolved from an angular 1 library to a framework agnostic library.
15-
* However, some of the `ui-router-core` code uses these ng1 style APIs to support ng1 style dependency injection.
15+
* However, some of the `@uirouter/core` code uses these ng1 style APIs to support ng1 style dependency injection.
1616
*
1717
* This API provides native ES6 promise support wrapped as a $q-like API.
1818
* Internally, UI-Router uses this $q object to perform promise operations.

test/stateBuilderSpec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ describe('StateBuilder', function() {
197197
expect(myBuiltState.parameter('foo').config.value).toBe('foo');
198198
});
199199

200-
// ui-router-core doesn't have views builder
200+
// @uirouter/core doesn't have views builder
201201
// it('should use `views` from the prototype', () => {
202202
// expect(myState.views).toBe(proto.views);
203203
// expect(built.views).toBe(proto.views);

0 commit comments

Comments
 (0)