Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
25.6.1
25.7.0
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "@cerbos/sdk-javascript",
"private": true,
"packageManager": "pnpm@10.30.0",
"packageManager": "pnpm@10.30.2",
"engines": {
"node": "25.6.1",
"pnpm": "10.30.0"
"node": "25.7.0",
"pnpm": "10.30.2"
},
"scripts": {
"all:parallel": "concurrently --group --prefix=none",
Expand Down Expand Up @@ -56,10 +56,10 @@
"@tsconfig/node20": "20.1.9",
"@tsconfig/strictest": "2.0.8",
"@types/node": "20.19.33",
"@types/web": "0.0.336",
"@types/web": "0.0.338",
"concurrently": "9.2.1",
"depcheck": "1.4.7",
"eslint": "9.39.2",
"eslint": "9.39.3",
"prettier": "3.8.1",
"prettier-plugin-pkg": "0.21.2",
"ts-proto": "2.11.2",
Expand Down
2 changes: 0 additions & 2 deletions packages/http/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,7 @@ function toQueryString<I extends DescMessage>(
function queryStringify(value: JsonValue, key = ""): string {
switch (typeof value) {
case "boolean":

case "number":

case "string":
return `${key}=${encodeURIComponent(String(value))}`;

Expand Down
1 change: 0 additions & 1 deletion packages/hub/src/interceptors/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ const neverRetry = Infinity;
function retryAt(error: ConnectError, attempt: number): number {
switch (error.code) {
case Code.Aborted:

case Code.Canceled:
return retryImmediately;

Expand Down
276 changes: 152 additions & 124 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions private/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
".": "./lib/index.js"
},
"devDependencies": {
"@eslint/js": "9.39.2",
"@stylistic/eslint-plugin": "5.8.0",
"@vitest/eslint-plugin": "1.6.6",
"@eslint/js": "9.39.3",
"@stylistic/eslint-plugin": "5.9.0",
"@vitest/eslint-plugin": "1.6.9",
"eslint-plugin-import": "2.32.0",
"eslint-plugin-react-hooks": "7.0.1",
"typescript-eslint": "8.54.0"
"typescript-eslint": "8.56.1"
}
}
7 changes: 6 additions & 1 deletion private/eslint/src/config/stylistic.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const stylisticConfig = defineConfig(
blankLine: "always",
prev: [
"block-like",
"case",
{ selector: "SwitchCase[consequent.length > 0]" },
"default",
"interface",
"multiline-const",
Expand All @@ -34,6 +34,11 @@ export const stylisticConfig = defineConfig(
],
next: "*",
},
{
blankLine: "never",
prev: [{ selector: "SwitchCase[consequent.length = 0]" }],
next: "*",
},
],
"stylistic/quotes": ["warn", "double", { avoidEscape: true }],
},
Expand Down
1 change: 1 addition & 0 deletions private/eslint/src/config/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export const typescriptConfig = defineConfig(
ignoreRestSiblings: true,
},
],
"@typescript-eslint/no-useless-default-assignment": "off", // https://github.com/typescript-eslint/typescript-eslint/issues/12068
"@typescript-eslint/prefer-enum-initializers": "warn",
"@typescript-eslint/prefer-nullish-coalescing": "warn",
"@typescript-eslint/promise-function-async": "warn",
Expand Down