navigation-stack 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,39 +1,39 @@
1
- name: Build and test
2
- on:
3
- push:
4
- branches: [master]
5
- pull_request:
6
- branches: [master]
7
-
8
- env:
9
- DISPLAY: :99.0
10
-
11
- jobs:
12
- build:
13
- runs-on: ubuntu-latest
14
- strategy:
15
- matrix:
16
- browser: ['ChromeCi', 'Firefox']
17
- node-version: [16.x]
18
-
19
- steps:
20
- - uses: actions/checkout@v2
21
- - name: Use Node.js ${{ matrix.node-version }}
22
- uses: actions/setup-node@v1
23
- with:
24
- node-version: ${{ matrix.node-version }}
25
-
26
- - name: Setup firefox
27
- if: ${{ matrix.browser == 'Firefox' }}
28
- uses: browser-actions/setup-firefox@latest
29
- with:
30
- firefox-version: 'latest'
31
- - name: Setup xvfb
32
- run: |
33
- sudo apt-get install xvfb
34
- Xvfb $DISPLAY -screen 0 1024x768x24 > /dev/null 2>&1 &
35
- - run: yarn install --frozen-lockfile
36
- - env:
37
- BROWSER: ${{ matrix.browser }}
38
- run: yarn test --coverage
39
- - run: node_modules/.bin/codecov
1
+ name: Build and test
2
+ on:
3
+ push:
4
+ branches: [master]
5
+ pull_request:
6
+ branches: [master]
7
+
8
+ env:
9
+ DISPLAY: :99.0
10
+
11
+ jobs:
12
+ build:
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ browser: ['ChromeCi', 'Firefox']
17
+ node-version: [16.x]
18
+
19
+ steps:
20
+ - uses: actions/checkout@v2
21
+ - name: Use Node.js ${{ matrix.node-version }}
22
+ uses: actions/setup-node@v1
23
+ with:
24
+ node-version: ${{ matrix.node-version }}
25
+
26
+ - name: Setup firefox
27
+ if: ${{ matrix.browser == 'Firefox' }}
28
+ uses: browser-actions/setup-firefox@latest
29
+ with:
30
+ firefox-version: 'latest'
31
+ - name: Setup xvfb
32
+ run: |
33
+ sudo apt-get install xvfb
34
+ Xvfb $DISPLAY -screen 0 1024x768x24 > /dev/null 2>&1 &
35
+ - run: yarn install --frozen-lockfile
36
+ - env:
37
+ BROWSER: ${{ matrix.browser }}
38
+ run: yarn test --coverage
39
+ - run: node_modules/.bin/codecov
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "navigation-stack",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Handles navigation in a web browser",
5
5
  "keywords": [
6
6
  "history",
package/types/index.d.ts CHANGED
@@ -184,7 +184,7 @@ export const Actions: {
184
184
  init(): InitAction;
185
185
  push(location: InputLocation): PushAction;
186
186
  replace(location: InputLocation): ReplaceAction;
187
- go(delta: number): RewindAction;
187
+ shift(delta: number): RewindAction;
188
188
  dispose(): DisposeAction;
189
189
  };
190
190
 
@@ -199,7 +199,7 @@ export interface Environment {
199
199
 
200
200
  navigate(location: LocationBase): Location;
201
201
 
202
- go(delta: number): void;
202
+ shift(delta: number): void;
203
203
 
204
204
  addBeforeDestroyListener(listener: BeforeDestroyListener): void;
205
205
 
@@ -218,7 +218,7 @@ declare abstract class EnvironmentBase implements Environment {
218
218
 
219
219
  navigate(location: LocationBase): Location;
220
220
 
221
- go(delta: number): void;
221
+ shift(delta: number): void;
222
222
 
223
223
  addBeforeDestroyListener(listener: BeforeDestroyListener): void;
224
224
 
Binary file