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 .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
# Available OS's: https://help.github.com/en/actions/reference/virtual-environments-for-github-hosted-runners
os: [ubuntu-latest, windows-latest, macos-latest]
node-version: ["20.x", "22.x", "24.x"]
node-version: ["22.x", "24.x"]
steps:
- uses: actions/checkout@v6
- name: Use Node.js ${{ matrix.node-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/e2e-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: true
matrix:
environment-name: ["ESS PodSpaces", "ESS Release-2-3", "ESS Next"]
environment-name: ["ESS PodSpaces"]
experimental: [false]
steps:
- uses: actions/checkout@v6
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/e2e-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
fail-fast: true
matrix:
os: [ubuntu-latest]
node-version: ["20.x", "22.x", "24.x"]
environment-name: ["ESS PodSpaces", "ESS Release-2-3", "ESS Next"]
node-version: ["22.x", "24.x"]
environment-name: ["ESS PodSpaces"]
experimental: [false]
steps:
- uses: actions/checkout@v6
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 @@ -6,6 +6,10 @@ The following changes have been implemented but not released yet:

## Unreleased

### Breaking Changes

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

## [2.0.1](https://github.com/inrupt/solid-client-vc-js/releases/tag/v2.0.1) - 2025-12-10

- The cached context for https://schema.inrupt.com/credentials/v2.jsonld now includes the
Expand Down
13 changes: 11 additions & 2 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@

import type { Config } from "jest";

import { createRequire } from "node:module";

// Jest 30 loads .ts config files as ESM via Node's native TypeScript support,
// so `require` is not available. Use createRequire for require.resolve calls.
const esmRequire = createRequire(import.meta.url);

type ArrayElement<MyArray> = MyArray extends Array<infer T> ? T : never;

const baseConfig: ArrayElement<NonNullable<Config["projects"]>> = {
Expand All @@ -29,8 +35,11 @@ const baseConfig: ArrayElement<NonNullable<Config["projects"]>> = {
// JS files are transformed to CJS, and that the transform also applies to the
// dependencies in the node_modules, so that ESM-only dependencies are supported.
preset: "ts-jest",
// deliberately set to an empty array to allow including node_modules when transforming code:
transformIgnorePatterns: [],
transformIgnorePatterns: ["node_modules[\\\\/](?!jose|uuid)"],
moduleNameMapper: {
"^jose": esmRequire.resolve("jose"),
"^uuid": esmRequire.resolve("uuid"),
},
modulePathIgnorePatterns: ["dist/"],
coveragePathIgnorePatterns: [
".*.spec.ts",
Expand Down
Loading