Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading minimum node engine to 16 #2023

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ version: 2.1
executors:
docker-node:
docker:
- image: circleci/node:12
- image: circleci/node:16
docker-harness:
docker:
- image: circleci/node:12
- image: circleci/node:16
- image: kennethreitz/httpbin
name: httpbin.org
macos:
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:12 as compiler
FROM node:16 as compiler

WORKDIR /usr/src/prism

Expand All @@ -8,7 +8,7 @@ COPY packages/ /usr/src/prism/packages/
RUN yarn && yarn build

###############################################################
FROM node:12 as dependencies
FROM node:16 as dependencies

WORKDIR /usr/src/prism/

Expand All @@ -34,7 +34,7 @@ RUN if [ $(uname -m) != "aarch64" ]; then curl -sfL https://install.goreleaser.c
RUN if [ $(uname -m) != "aarch64" ]; then ./bin/node-prune; fi

###############################################################
FROM node:12-alpine
FROM node:16-alpine

WORKDIR /usr/src/prism
ARG BUILD_TYPE=development
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Prism is a set of packages for API mocking and contract testing with **OpenAPI v

### Installation

_Prism requires NodeJS >= 12 to properly work._
_Prism requires NodeJS >= 16 to properly work._

```bash
npm install -g @stoplight/prism-cli
Expand All @@ -50,7 +50,7 @@ Learn more about [how the mock server works](docs/guides/01-mocking.md).

### Validation Proxy

Prism can help you check for discrepencies between your API implementation and the OpenAPI document that describes, letting you funnel HTTP traffic through it with the `prism proxy` command.
Prism can help you check for discrepencies between your API implementation and the OpenAPI document that describes, letting you funnel HTTP traffic through it with the `prism proxy` command.

```bash
prism proxy examples/petstore.oas2.yaml https://petstore.swagger.io/v2
Expand Down Expand Up @@ -148,4 +148,3 @@ If you would like to thank us for creating Prism, we ask that you [**buy the wor
[npm]: https://www.npmjs.com/package/@stoplight/prism-cli
[npm_image]: https://img.shields.io/npm/dw/@stoplight/prism-http?color=blue
[stoplight_forest]: https://ecologi.com/stoplightinc

2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"yargs": "^16.2.0"
},
"engines": {
"node": ">=12"
"node": ">=16"
},
"files": [
"/dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"/dist"
],
"engines": {
"node": ">=12"
"node": ">=16"
},
"dependencies": {
"fp-ts": "^2.11.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/http-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/stoplightio/prism.git"
},
"engines": {
"node": ">=12"
"node": ">=16"
},
"files": [
"/dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/http/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"/dist"
],
"engines": {
"node": ">=12"
"node": ">=16"
},
"dependencies": {
"@stoplight/json": "^3.13.7",
Expand Down