Skip to content

Commit 6beb119

Browse files
committed
feat: Upgrade Node Package Manager lock file package-lock.json to version 2 (parse-community#8285)
BREAKING CHANGE: The Node Package Manager lock file `package-lock.json` is upgraded to version 2; while it is backwards with version 1 for the npm installer, consider this if you run any non-npm analysis tools that use the lock file (parse-community#8285)
1 parent cf129d1 commit 6beb119

File tree

6 files changed

+12
-13
lines changed

6 files changed

+12
-13
lines changed

.eslintrc.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,14 @@
55
"node": true,
66
"es6": true
77
},
8-
"parser": "babel-eslint",
8+
"parser": "@babel/eslint-parser",
99
"plugins": [
1010
"flowtype"
1111
],
1212
"parserOptions": {
1313
"ecmaVersion": 6,
14-
"sourceType": "module"
14+
"sourceType": "module",
15+
"requireConfigFile": false
1516
},
1617
"rules": {
1718
"indent": ["error", 2, { "SwitchCase": 1 }],

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ jobs:
137137
- name: Check NPM lock file version
138138
uses: mansona/npm-lockfile-version@v1
139139
with:
140-
version: 1
140+
version: 2
141141
check-mongo:
142142
strategy:
143143
matrix:

package.json

+5-6
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
],
2020
"license": "BSD-3-Clause",
2121
"dependencies": {
22+
"@babel/eslint-parser": "7.19.1",
2223
"@graphql-tools/merge": "8.3.6",
2324
"@graphql-tools/schema": "9.0.4",
2425
"@graphql-tools/utils": "8.12.0",
@@ -63,7 +64,7 @@
6364
"@actions/core": "1.9.1",
6465
"@apollo/client": "3.6.1",
6566
"@babel/cli": "7.10.0",
66-
"@babel/core": "7.10.0",
67+
"@babel/core": "7.20.2",
6768
"@babel/plugin-proposal-object-rest-spread": "7.10.0",
6869
"@babel/plugin-transform-flow-strip-types": "7.9.0",
6970
"@babel/preset-env": "7.10.0",
@@ -76,14 +77,12 @@
7677
"@semantic-release/npm": "7.1.3",
7778
"@semantic-release/release-notes-generator": "9.0.3",
7879
"all-node-versions": "8.0.0",
79-
"apollo-upload-client": "16.0.0",
80-
"apollo-utilities": "1.3.4",
81-
"babel-eslint": "10.1.0",
80+
"apollo-upload-client": "17.0.0",
8281
"bcrypt-nodejs": "0.0.3",
8382
"cross-env": "7.0.2",
8483
"deep-diff": "1.0.2",
85-
"eslint": "6.8.0",
86-
"eslint-plugin-flowtype": "5.1.3",
84+
"eslint": "8.26.0",
85+
"eslint-plugin-flowtype": "8.0.3",
8786
"flow-bin": "0.119.1",
8887
"form-data": "3.0.0",
8988
"graphql-tag": "2.12.6",

spec/.babelrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"plugins": [
3-
"transform-object-rest-spread"
3+
"@babel/plugin-proposal-object-rest-spread"
44
],
55
"presets": [
6-
["env", {
6+
["@babel/preset-env", {
77
"targets": {
88
"node": "14"
99
}

spec/ParseGraphQLServer.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require('./helper');
88
const { updateCLP } = require('./support/dev');
99

1010
const pluralize = require('pluralize');
11-
const { getMainDefinition } = require('apollo-utilities');
11+
const { getMainDefinition } = require('@apollo/client/utilities');
1212
const { createUploadLink } = require('apollo-upload-client');
1313
const { SubscriptionClient } = require('subscriptions-transport-ws');
1414
const { WebSocketLink } = require('@apollo/client/link/ws');

src/Options/Definitions.js

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ This code has been generated by resources/buildConfigDefinitions.js
44
Do not edit manually, but update Options/index.js
55
*/
66
var parsers = require('./parsers');
7-
87
module.exports.SchemaOptions = {
98
afterMigration: {
109
env: 'PARSE_SERVER_SCHEMA_AFTER_MIGRATION',

0 commit comments

Comments
 (0)