Skip to content
This repository was archived by the owner on Mar 28, 2022. It is now read-only.

Commit 39b7758

Browse files
authored
Merge pull request #105 from mocks-server/release
Release v2.0.0
2 parents 7b7c42a + 88d4796 commit 39b7758

File tree

7 files changed

+4181
-6730
lines changed

7 files changed

+4181
-6730
lines changed

.github/workflows/build.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
branches:
55
- master
66
- release
7+
- pre-release
78
pull_request:
89
jobs:
910
test:

CHANGELOG.md

+24
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
### Fixed
1111
### Removed
1212

13+
## [2.0.0] - 2021-02-17
14+
15+
### Added
16+
- feat: Add mocks, routes and routes-variants paths
17+
- feat: Add legacy path
18+
- feat: Add mock-custom-routes-variants path
19+
20+
### Changed
21+
- Update dependencies
22+
23+
### BREAKING CHANGES
24+
- Behaviors and fixtures routes have to be used under legacy path
25+
26+
## [2.0.0-beta.2] - 2021-02-14
27+
28+
### Added
29+
- feat: Add mock-custom-routes-variants path
30+
31+
## [2.0.0-beta.1] - 2021-02-03
32+
33+
### Added
34+
- feat: Add mocks, routes and routes-variants paths
35+
- feat: Add legacy path
36+
1337
## [1.1.0] - 2020-12-25
1438

1539
### Added

index.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
export const DEFAULT_BASE_PATH = "/admin";
22
export const SETTINGS = "/settings";
3-
export const BEHAVIORS = "/behaviors";
4-
export const FIXTURES = "/fixtures";
53
export const ABOUT = "/about";
64
export const ALERTS = "/alerts";
5+
6+
export const MOCKS = "/mocks";
7+
export const ROUTES = "/routes";
8+
export const ROUTES_VARIANTS = "/routes-variants";
9+
export const MOCK_CUSTOM_ROUTES_VARIANTS = "/mock-custom-routes-variants";
10+
11+
export const LEGACY = "/legacy";
12+
export const BEHAVIORS = "/behaviors";
13+
export const FIXTURES = "/fixtures";

package-lock.json

+4,092-6,709
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@mocks-server/admin-api-paths",
3-
"version": "1.1.0",
3+
"version": "2.0.0",
44
"description": "Api paths of @mocks-server/plugin-admin-api",
55
"keywords": [
66
"administration",
@@ -29,19 +29,19 @@
2929
"test:unit": "npm run test"
3030
},
3131
"devDependencies": {
32-
"@babel/preset-env": "7.12.1",
33-
"@rollup/plugin-babel": "5.2.1",
34-
"@rollup/plugin-commonjs": "15.1.0",
32+
"@babel/preset-env": "7.12.16",
33+
"@rollup/plugin-babel": "5.2.3",
34+
"@rollup/plugin-commonjs": "17.1.0",
3535
"@rollup/plugin-node-resolve": "9.0.0",
36-
"babel-jest": "26.6.1",
37-
"eslint": "7.12.0",
38-
"eslint-config-prettier": "6.14.0",
39-
"eslint-plugin-prettier": "3.1.4",
40-
"husky": "4.3.0",
41-
"jest": "26.6.1",
42-
"lint-staged": "10.5.0",
43-
"prettier": "2.1.2",
44-
"rollup": "2.32.1",
36+
"babel-jest": "26.6.3",
37+
"eslint": "7.20.0",
38+
"eslint-config-prettier": "6.15.0",
39+
"eslint-plugin-prettier": "3.3.1",
40+
"husky": "4.3.8",
41+
"jest": "26.6.3",
42+
"lint-staged": "10.5.4",
43+
"prettier": "2.2.1",
44+
"rollup": "2.39.0",
4545
"rollup-plugin-terser": "7.0.2"
4646
},
4747
"lint-staged": {

sonar-project.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sonar.organization=mocks-server
22
sonar.projectKey=mocks-server-admin-api-paths
3-
sonar.projectVersion=1.1.0
3+
sonar.projectVersion=2.0.0
44

55
sonar.javascript.file.suffixes=.js
66
sonar.sourceEncoding=UTF-8

test/index.spec.js

+41-5
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,59 @@
1-
import { DEFAULT_BASE_PATH, SETTINGS, BEHAVIORS, FIXTURES, ABOUT } from "../index";
1+
import {
2+
DEFAULT_BASE_PATH,
3+
ABOUT,
4+
SETTINGS,
5+
ALERTS,
6+
MOCKS,
7+
ROUTES,
8+
ROUTES_VARIANTS,
9+
MOCK_CUSTOM_ROUTES_VARIANTS,
10+
LEGACY,
11+
BEHAVIORS,
12+
FIXTURES,
13+
} from "../index";
214

315
describe("Exported paths", () => {
416
it("should contain the default api base path", () => {
517
expect(DEFAULT_BASE_PATH).toBeDefined();
618
});
719

20+
it("should contain the about path", () => {
21+
expect(ABOUT).toBeDefined();
22+
});
23+
824
it("should contain the settings path", () => {
925
expect(SETTINGS).toBeDefined();
1026
});
1127

28+
it("should contain the alerts path", () => {
29+
expect(ALERTS).toBeDefined();
30+
});
31+
32+
it("should contain the mocks path", () => {
33+
expect(MOCKS).toBeDefined();
34+
});
35+
36+
it("should contain the routes path", () => {
37+
expect(ROUTES).toBeDefined();
38+
});
39+
40+
it("should contain the routes-variants path", () => {
41+
expect(ROUTES_VARIANTS).toBeDefined();
42+
});
43+
44+
it("should contain the mock-custom-routes-variants path", () => {
45+
expect(MOCK_CUSTOM_ROUTES_VARIANTS).toBeDefined();
46+
});
47+
48+
it("should contain the legacy path", () => {
49+
expect(LEGACY).toBeDefined();
50+
});
51+
1252
it("should contain the behaviors path", () => {
1353
expect(BEHAVIORS).toBeDefined();
1454
});
1555

1656
it("should contain the fixtures path", () => {
1757
expect(FIXTURES).toBeDefined();
1858
});
19-
20-
it("should contain the about path", () => {
21-
expect(ABOUT).toBeDefined();
22-
});
2359
});

0 commit comments

Comments
 (0)