mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: unleash v4 will require node 14 or higher (#784)
This commit is contained in:
		
							parent
							
								
									c86a29622d
								
							
						
					
					
						commit
						0eb132c025
					
				
							
								
								
									
										2
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build.yaml
									
									
									
									
										vendored
									
									
								
							@ -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:
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								.github/workflows/build_prs.yaml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/build_prs.yaml
									
									
									
									
										vendored
									
									
								
							@ -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:
 | 
			
		||||
 | 
			
		||||
@ -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",
 | 
			
		||||
 | 
			
		||||
@ -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, []);
 | 
			
		||||
        });
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
@ -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"
 | 
			
		||||
 | 
			
		||||
@ -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"
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user