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

Commit

Permalink
Merge pull request #105 from mocks-server/release
Browse files Browse the repository at this point in the history
Release v2.0.0
  • Loading branch information
javierbrea authored Feb 17, 2021
2 parents 7b7c42a + 88d4796 commit 39b7758
Show file tree
Hide file tree
Showing 7 changed files with 4,181 additions and 6,730 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- master
- release
- pre-release
pull_request:
jobs:
test:
Expand Down
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Fixed
### Removed

## [2.0.0] - 2021-02-17

### Added
- feat: Add mocks, routes and routes-variants paths
- feat: Add legacy path
- feat: Add mock-custom-routes-variants path

### Changed
- Update dependencies

### BREAKING CHANGES
- Behaviors and fixtures routes have to be used under legacy path

## [2.0.0-beta.2] - 2021-02-14

### Added
- feat: Add mock-custom-routes-variants path

## [2.0.0-beta.1] - 2021-02-03

### Added
- feat: Add mocks, routes and routes-variants paths
- feat: Add legacy path

## [1.1.0] - 2020-12-25

### Added
Expand Down
11 changes: 9 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
export const DEFAULT_BASE_PATH = "/admin";
export const SETTINGS = "/settings";
export const BEHAVIORS = "/behaviors";
export const FIXTURES = "/fixtures";
export const ABOUT = "/about";
export const ALERTS = "/alerts";

export const MOCKS = "/mocks";
export const ROUTES = "/routes";
export const ROUTES_VARIANTS = "/routes-variants";
export const MOCK_CUSTOM_ROUTES_VARIANTS = "/mock-custom-routes-variants";

export const LEGACY = "/legacy";
export const BEHAVIORS = "/behaviors";
export const FIXTURES = "/fixtures";
10,801 changes: 4,092 additions & 6,709 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@mocks-server/admin-api-paths",
"version": "1.1.0",
"version": "2.0.0",
"description": "Api paths of @mocks-server/plugin-admin-api",
"keywords": [
"administration",
Expand Down Expand Up @@ -29,19 +29,19 @@
"test:unit": "npm run test"
},
"devDependencies": {
"@babel/preset-env": "7.12.1",
"@rollup/plugin-babel": "5.2.1",
"@rollup/plugin-commonjs": "15.1.0",
"@babel/preset-env": "7.12.16",
"@rollup/plugin-babel": "5.2.3",
"@rollup/plugin-commonjs": "17.1.0",
"@rollup/plugin-node-resolve": "9.0.0",
"babel-jest": "26.6.1",
"eslint": "7.12.0",
"eslint-config-prettier": "6.14.0",
"eslint-plugin-prettier": "3.1.4",
"husky": "4.3.0",
"jest": "26.6.1",
"lint-staged": "10.5.0",
"prettier": "2.1.2",
"rollup": "2.32.1",
"babel-jest": "26.6.3",
"eslint": "7.20.0",
"eslint-config-prettier": "6.15.0",
"eslint-plugin-prettier": "3.3.1",
"husky": "4.3.8",
"jest": "26.6.3",
"lint-staged": "10.5.4",
"prettier": "2.2.1",
"rollup": "2.39.0",
"rollup-plugin-terser": "7.0.2"
},
"lint-staged": {
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
sonar.organization=mocks-server
sonar.projectKey=mocks-server-admin-api-paths
sonar.projectVersion=1.1.0
sonar.projectVersion=2.0.0

sonar.javascript.file.suffixes=.js
sonar.sourceEncoding=UTF-8
Expand Down
46 changes: 41 additions & 5 deletions test/index.spec.js
Original file line number Diff line number Diff line change
@@ -1,23 +1,59 @@
import { DEFAULT_BASE_PATH, SETTINGS, BEHAVIORS, FIXTURES, ABOUT } from "../index";
import {
DEFAULT_BASE_PATH,
ABOUT,
SETTINGS,
ALERTS,
MOCKS,
ROUTES,
ROUTES_VARIANTS,
MOCK_CUSTOM_ROUTES_VARIANTS,
LEGACY,
BEHAVIORS,
FIXTURES,
} from "../index";

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

it("should contain the about path", () => {
expect(ABOUT).toBeDefined();
});

it("should contain the settings path", () => {
expect(SETTINGS).toBeDefined();
});

it("should contain the alerts path", () => {
expect(ALERTS).toBeDefined();
});

it("should contain the mocks path", () => {
expect(MOCKS).toBeDefined();
});

it("should contain the routes path", () => {
expect(ROUTES).toBeDefined();
});

it("should contain the routes-variants path", () => {
expect(ROUTES_VARIANTS).toBeDefined();
});

it("should contain the mock-custom-routes-variants path", () => {
expect(MOCK_CUSTOM_ROUTES_VARIANTS).toBeDefined();
});

it("should contain the legacy path", () => {
expect(LEGACY).toBeDefined();
});

it("should contain the behaviors path", () => {
expect(BEHAVIORS).toBeDefined();
});

it("should contain the fixtures path", () => {
expect(FIXTURES).toBeDefined();
});

it("should contain the about path", () => {
expect(ABOUT).toBeDefined();
});
});

0 comments on commit 39b7758

Please sign in to comment.