diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 8971fcac2d..2c8bdffd33 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -11,7 +11,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x] + node-version: [14.x] services: # Label used to access the service container postgres: diff --git a/.github/workflows/build_prs.yaml b/.github/workflows/build_prs.yaml index ff21a4ef76..bacf742466 100644 --- a/.github/workflows/build_prs.yaml +++ b/.github/workflows/build_prs.yaml @@ -10,7 +10,7 @@ jobs: strategy: matrix: - node-version: [12.x, 14.x] + node-version: [14.x] services: # Label used to access the service container postgres: diff --git a/package.json b/package.json index 5b0f112c95..af2b681b99 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/unleash/unleash/issues" }, "engines": { - "node": ">=12" + "node": ">=14" }, "license": "Apache-2.0", "main": "./dist/lib/server-impl.js", @@ -109,7 +109,7 @@ "@passport-next/passport": "^3.1.0", "@passport-next/passport-google-oauth2": "^1.0.0", "@types/express": "^4.17.11", - "@types/node": "^14.0.0", + "@types/node": "^14.14.37", "@types/nodemailer": "^6.4.1", "@typescript-eslint/eslint-plugin": "^4.15.2", "@typescript-eslint/parser": "^4.15.2", diff --git a/src/lib/routes/index.test.js b/src/lib/routes/index.test.js index 18dfe2d938..f5f9890118 100644 --- a/src/lib/routes/index.test.js +++ b/src/lib/routes/index.test.js @@ -74,17 +74,3 @@ test('client api defintion', t => { t.true(res.body.links.metrics.uri === '/api/client/metrics'); }); }); - -test('client legacy features uri', t => { - t.plan(3); - const { request, base } = getSetup(); - return request - .get(`${base}/api/features`) - .expect('Content-Type', /json/) - .expect(200) - .expect(res => { - t.truthy(res.body); - t.true(res.body.version === 1); - t.deepEqual(res.body.features, []); - }); -}); diff --git a/tsconfig.json b/tsconfig.json index 8d6e277ed8..0a2ba1d431 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,7 +3,7 @@ /* Visit https://aka.ms/tsconfig.json to read more about this file */ /* Basic Options */ // "incremental": true, /* Enable incremental compilation */ - "target": "es2019" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, + "target": "es2020" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */, "module": "commonjs" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */, "lib": [ "es6" diff --git a/yarn.lock b/yarn.lock index 389cac568e..c0e668ce5c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -590,11 +590,16 @@ resolved "https://registry.npmjs.org/@types/minimatch/-/minimatch-3.0.3.tgz" integrity sha512-tHq6qdbT9U1IRSGf14CL0pUlULksvY9OZ+5eEgl1N7t+OA3tGvNpxJCzuKQlsNgCVwbAs670L1vcVQi8j9HjnA== -"@types/node@*", "@types/node@^14.0.0": +"@types/node@*": version "14.0.27" resolved "https://registry.npmjs.org/@types/node/-/node-14.0.27.tgz" integrity sha512-kVrqXhbclHNHGu9ztnAwSncIgJv/FaxmzXJvGXNdcCpV1b8u1/Mi6z6m0vwy0LzKeXFTPLH0NzwmoJ3fNCIq0g== +"@types/node@^14.14.37": + version "14.14.37" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.37.tgz#a3dd8da4eb84a996c36e331df98d82abd76b516e" + integrity sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw== + "@types/nodemailer@^6.4.1": version "6.4.1" resolved "https://registry.yarnpkg.com/@types/nodemailer/-/nodemailer-6.4.1.tgz#31f96f4410632f781d3613bd1f4293649e423f75"