Skip to content
Draft
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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
node-version: ["20.x", "22.x", "24.x"]
node-version: ["22.x", "24.x"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node-version: ["20.x", "22.x", "24.x"]
node-version: ["22.x", "24.x"]
environment-name: ["ESS PodSpaces", "ESS Next"]
experimental: [false]
steps:
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
22
24
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The following changes are pending, and will be applied on the next major release

## Unreleased changes

### Breaking Changes

- Support for Node.js v20.x has been dropped as that version has reached end-of-life.

## [3.0.0](https://github.com/inrupt/solid-client-js/releases/tag/v3.0.0) - 2025-11-03

### Breaking Changes
Expand Down
3 changes: 1 addition & 2 deletions e2e/node/acp.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
test,
} from "@jest/globals";

import type { Session } from "@inrupt/solid-client-authn-node";
import {
getNodeTestingEnvironment,
setupTestResources,
Expand Down Expand Up @@ -100,7 +99,7 @@ const READ_AND_APPEND_ACCESS = {

describe("An ACP Solid server", () => {
let fetchOptions: { fetch: typeof global.fetch };
let session: Session;
let session: Awaited<ReturnType<typeof getAuthenticatedSession>>;
let sessionResource: string;
let sessionContainer: string;

Expand Down
3 changes: 1 addition & 2 deletions e2e/node/request-metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import {
jest,
} from "@jest/globals";

import type { Session } from "@inrupt/solid-client-authn-node";
import {
getNodeTestingEnvironment,
getPodRoot,
Expand Down Expand Up @@ -93,7 +92,7 @@ if (
describe.each(metadataHeaders)(
"End-to-end application-defined request metadata: %s",
(returnedHeaders: Record<string, string>) => {
let session: Session;
let session: Awaited<ReturnType<typeof getAuthenticatedSession>>;
let pod: string;
let profileUrl: string;

Expand Down
4 changes: 1 addition & 3 deletions e2e/node/resource.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import {
it,
} from "@jest/globals";

import type { Session } from "@inrupt/solid-client-authn-node";

import {
getNodeTestingEnvironment,
setupTestResources,
Expand Down Expand Up @@ -71,7 +69,7 @@ const TEST_SLUG = "solid-client-test-e2e-resource";

describe("Authenticated end-to-end", () => {
let fetchOptions: { fetch: typeof fetch };
let session: Session;
let session: Awaited<ReturnType<typeof getAuthenticatedSession>>;
let sessionContainer: string;
let sessionResource: string;
let pod: string;
Expand Down
3 changes: 1 addition & 2 deletions e2e/node/wac.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ import {
test,
} from "@jest/globals";

import type { Session } from "@inrupt/solid-client-authn-node";
import {
getNodeTestingEnvironment,
getPodRoot,
Expand Down Expand Up @@ -63,7 +62,7 @@ if (env.features?.WAC === "false" || env.features?.WAC === "") {

describe("Authenticated end-to-end WAC", () => {
let options: { fetch: typeof global.fetch };
let session: Session;
let session: Awaited<ReturnType<typeof getAuthenticatedSession>>;
let sessionResource: string;
let pod: string;

Expand Down
11 changes: 9 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,19 @@ const baseConfig: ArrayElement<NonNullable<Config["projects"]>> = {
transform: {
...defaultPreset.transform,
// [\\\\/] expands to [\\/], which makes the regex Windows-compatible.
"node_modules[\\\\/]uuid.+\\.js$": [
// jose v6 ships as ESM only, and may be nested in a dependency's own
// node_modules (e.g. @inrupt/internal-test-env), so match it anywhere.
"node_modules[\\\\/](uuid|.*jose).+\\.js$": [
"ts-jest",
{ tsconfig: { allowJs: true } },
],
},
transformIgnorePatterns: ["node_modules[\\\\/](?!uuid)"],
// Ignore everything under node_modules except uuid and jose (the latter
// possibly nested in another package's node_modules), which ship ESM that
// must be transpiled before Jest can parse it.
transformIgnorePatterns: [
"node_modules[\\\\/](?!(.*[\\\\/])?(uuid|jose)[\\\\/])",
],
};

export default {
Expand Down
Loading
Loading