Skip to content
This repository has been archived by the owner on Sep 11, 2023. It is now read-only.

Commit

Permalink
Upgrading minimum node engine to 16 (stoplightio#2023)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonbarry authored Apr 13, 2022
1 parent 3780c3d commit d1e0817
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 12 deletions.
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

0 comments on commit d1e0817

Please sign in to comment.