Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
Merge pull request #187 from mocks-server/release
Browse files Browse the repository at this point in the history
Release v3.0.0
  • Loading branch information
javierbrea authored Dec 5, 2021
2 parents 2683a2d + 31a0b1b commit bfd690f
Show file tree
Hide file tree
Showing 15 changed files with 17,854 additions and 2,799 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: ["12.22.1", "14.17.0", "15.14.0", "16.1.0"]
node: ["12.22.1", "14.17.0", "16.1.0", "17.2.0"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- run: npm ci
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '16.x'
registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
scope: '@mocks-server'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
- run: npm ci
- uses: actions/setup-node@v2
with:
node-version: '14.x'
node-version: '16.x'
registry-url: 'https://registry.npmjs.org/'
- run: npm publish
env:
Expand Down
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
### Changed
### Fixed
### Removed
### Breaking changes

## [3.0.0] - 2021-12-05

### Changed
- chore(deps): BREAKING CHANGE - Update `@mocks-server/admin-api-client` to 4.0.0, so from now default `MOCKS_SERVER_BASE_URL` is `http://127.0.0.1:3100`
- chore: Support any NodeJs version >=12.0.0
- chore: Run tests also in NodeJs 17 in pipelines. Remove tests execution using NodeJs 15
- chore: Update devDependencies

### Fixed
- docs: Remove broken npm dependencies badge

## [2.1.0] - 2021-05-29
### Added
Expand Down
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build status][build-image]][build-url] [![Coverage Status][coveralls-image]][coveralls-url] [![Quality Gate][quality-gate-image]][quality-gate-url]

[![NPM dependencies][npm-dependencies-image]][npm-dependencies-url] [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url]
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com) [![Last commit][last-commit-image]][last-commit-url] [![Last release][release-image]][release-url]

[![NPM downloads][npm-downloads-image]][npm-downloads-url] [![License][license-image]][license-url]

Expand Down Expand Up @@ -61,11 +61,11 @@ Legacy method that sets behavior in Mocks Server v1.x

## Configuration

By default, the API client is configured to request to `http://localhost:3100/admin`, based in the [default Mocks Server options][mocks-server-options-url]
By default, the API client is configured to request to `http://127.0.0.1:3100/admin`, based in the [default Mocks Server options][mocks-server-options-url]

You can change both the base url of Mocks Server, and the api path of the administration API using the `cy.mocksConfig` command mentioned above, or the plugin environment variables:

* __`MOCKS_SERVER_BASE_URL`__: Modifies the base url of Mocks Server. Default is `http://localhost:3100`.
* __`MOCKS_SERVER_BASE_URL`__: Modifies the base url of Mocks Server. Default is `http://127.0.0.1:3100`.
* __`MOCKS_SERVER_ADMIN_API_PATH`__: Modifies the path of the Mocks Server administration API. Default is `/admin`.
* __`MOCKS_SERVER_ENABLED`__: Disables requests to Mocks Server, so the commands will not fail even when Mocks Server is not running. This is useful to reuse same tests with mocks and a real API, because commands to change Mocks Server settings will be ignored.

Expand Down Expand Up @@ -119,8 +119,6 @@ MIT, see [LICENSE](./LICENSE) for details.
[license-url]: https://github.com/mocks-server/cypress-commands/blob/master/LICENSE
[npm-downloads-image]: https://img.shields.io/npm/dm/@mocks-server/cypress-commands.svg
[npm-downloads-url]: https://www.npmjs.com/package/@mocks-server/cypress-commands
[npm-dependencies-image]: https://img.shields.io/david/mocks-server/cypress-commands.svg
[npm-dependencies-url]: https://david-dm.org/mocks-server/cypress-commands
[quality-gate-image]: https://sonarcloud.io/api/project_badges/measure?project=mocks-server_cypress-commands&metric=alert_status
[quality-gate-url]: https://sonarcloud.io/dashboard?id=mocks-server_cypress-commands
[release-image]: https://img.shields.io/github/release-date/mocks-server/cypress-commands.svg
Expand Down
Loading

0 comments on commit bfd690f

Please sign in to comment.