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

feat: update deps & nodejs 22 #2573

Merged
merged 17 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: Add version check in docker images
rolljee committed Jan 8, 2025
commit 32a2efd896d4f5cf3d010cc7710ca8d523389ef3
1 change: 1 addition & 0 deletions docker/images/kuzzle/Dockerfile
Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@
ADD ./package-lock.json package-lock.json
ADD ./index.ts index.ts
ADD ./tsconfig.json tsconfig.json
ADD ./check-node-version.js check-node-version.js

RUN npm ci
RUN npm run build
1 change: 1 addition & 0 deletions docker/images/plugin-dev/Dockerfile
Original file line number Diff line number Diff line change
@@ -20,6 +20,7 @@
ADD ./package-lock.json package-lock.json
ADD ./index.ts index.ts
ADD ./tsconfig.json tsconfig.json
ADD ./check-node-version.js check-node-version.js

RUN npm ci
RUN npm run build
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
"description": "Kuzzle is an open-source solution that handles all the data management through a secured API, with a large choice of protocols.",
"bin": "bin/start-kuzzle-server",
"scripts": {
"preinstall": "node ./check-node-version",
"preinstall": "node ./check-node-version.js",
"build": "tsc",
"clean": "touch index.ts && npm run build | grep TSFILE | cut -d' ' -f 2 | xargs rm",
"cucumber": "cucumber.js --fail-fast",

Unchanged files with check annotations Beta

if (this.config.configs) {
this.log.ok("Configuration files loaded:");
this.config.configs.forEach((f) => this.log.print(`\t- ${f}`));

Check warning on line 65 in bin/.upgrades/lib/context.js

GitHub Actions / Lint - Node.js (18)

Prefer for...of instead of Array.forEach

Check warning on line 65 in bin/.upgrades/lib/context.js

GitHub Actions / Lint - Node.js (20)

Prefer for...of instead of Array.forEach

Check warning on line 65 in bin/.upgrades/lib/context.js

GitHub Actions / Lint - Node.js (22)

Prefer for...of instead of Array.forEach
}
this.version = await this.getVersions();
properties: {
job: { type: "keyword" },
name: { type: "keyword" },
age: { type: "integer" },

Check warning on line 10 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 10 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 10 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'age' should be before 'name'
city: { type: "keyword" },
},
},
},
"mtp-open-data": {

Check warning on line 15 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'mtp-open-data' should be before 'nyc-open-data'

Check warning on line 15 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'mtp-open-data' should be before 'nyc-open-data'

Check warning on line 15 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'mtp-open-data' should be before 'nyc-open-data'
"green-taxi": {
properties: {
job: { type: "keyword" },
name: { type: "keyword" },
age: { type: "integer" },

Check warning on line 20 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 20 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'age' should be before 'name'

Check warning on line 20 in features/fixtures/mappings.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'age' should be before 'name'
city: { type: "keyword" },
},
},
credentials: {
local: {
username: "test-admin",
password: "password",

Check warning on line 14 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 14 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 14 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'password' should be before 'username'
},
},
},
"default-user": {

Check warning on line 18 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'default-user' should be before 'test-admin'

Check warning on line 18 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'default-user' should be before 'test-admin'

Check warning on line 18 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'default-user' should be before 'test-admin'
content: {
profileIds: ["default"],
},
credentials: {
local: {
username: "default-user",
password: "password",

Check warning on line 25 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 25 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 25 in features/fixtures/permissions.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'password' should be before 'username'
},
},
},
async function (username, password) {
this.props.result = await this.sdk.auth.login("local", {
username,
password,

Check warning on line 12 in features/step_definitions/auth-steps.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 12 in features/step_definitions/auth-steps.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'password' should be before 'username'

Check warning on line 12 in features/step_definitions/auth-steps.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'password' should be before 'username'
});
},
);
const request = {
controller: "bulk",
action: "deleteByQuery",

Check warning on line 48 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'action' should be before 'controller'

Check warning on line 48 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'action' should be before 'controller'

Check warning on line 48 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'action' should be before 'controller'
index: this.props.index,
collection: this.props.collection,

Check warning on line 50 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js (18)

Expected object keys to be in ascending order. 'collection' should be before 'index'

Check warning on line 50 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js (20)

Expected object keys to be in ascending order. 'collection' should be before 'index'

Check warning on line 50 in features/step_definitions/bulk-steps.js

GitHub Actions / Lint - Node.js (22)

Expected object keys to be in ascending order. 'collection' should be before 'index'
refresh: "wait_for",
body: { query },
};