Skip to content

Commit

Permalink
chore: Make Node v18 the minimum supported version
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimvh committed Oct 5, 2023
1 parent 51e5588 commit e7010a8
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 16 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/npm-test.yml
Expand Up @@ -23,10 +23,6 @@ jobs:
- ubuntu-latest
- windows-latest
node-version:
- '14.14'
- '14.x'
- '16.0'
- '16.x'
- '18.0'
- '18.x'
- '20.0'
Expand Down Expand Up @@ -60,8 +56,6 @@ jobs:
strategy:
matrix:
node-version:
- '14.x'
- '16.x'
- '18.x'
- '20.x'
env:
Expand Down Expand Up @@ -96,8 +90,6 @@ jobs:
strategy:
matrix:
node-version:
- '14.x'
- '16.x'
- '18.x'
- '20.x'
timeout-minutes: 20
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -31,7 +31,7 @@ And, of course, for many others who like to experience Solid.

## ⚡ Running the Community Solid Server

Use [Node.js](https://nodejs.org/en/) 14.14 or up and execute:
Use [Node.js](https://nodejs.org/en/) 18.0 or up and execute:

```shell
npx @solid/community-server
Expand Down
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Expand Up @@ -4,6 +4,7 @@

### New features

- The minimum supported Node version is now v18.
- The `StaticAssetHandler` can now be used to link static pages to containers.
This can be used to set a static page for the root container of a server.
See the `/config/app/init/static-root.json` config for an example.
Expand Down
2 changes: 1 addition & 1 deletion documentation/markdown/usage/starting-server.md
Expand Up @@ -2,7 +2,7 @@

## Quickly spinning up a server

Use [Node.js](https://nodejs.org/en/) 14.14 or up and execute:
Use [Node.js](https://nodejs.org/en/) 18.0 or up and execute:

```shell
npx @solid/community-server
Expand Down
16 changes: 14 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Expand Up @@ -18,7 +18,7 @@
],
"license": "MIT",
"engines": {
"node": ">=14.14"
"node": ">=18.0"
},
"lsd:module": "https://linkedsoftwaredependencies.org/bundles/npm/@solid/community-server",
"lsd:components": "dist/components/components.jsonld",
Expand Down Expand Up @@ -172,7 +172,7 @@
"@inrupt/solid-client-authn-core": "1.14.0",
"@inrupt/solid-client-authn-node": "1.14.0",
"@microsoft/tsdoc-config": "^0.16.2",
"@tsconfig/node14": "^1.0.3",
"@tsconfig/node18": "^2.0.1",
"@types/cheerio": "^0.22.31",
"@types/jest": "^29.5.1",
"@types/set-cookie-parser": "^2.4.2",
Expand Down
3 changes: 2 additions & 1 deletion src/http/auxiliary/RoutingAuxiliaryStrategy.ts
Expand Up @@ -12,10 +12,11 @@ import { RoutingAuxiliaryIdentifierStrategy } from './RoutingAuxiliaryIdentifier
* or only the matching strategy if the input is an auxiliary identifier.
*/
export class RoutingAuxiliaryStrategy extends RoutingAuxiliaryIdentifierStrategy implements AuxiliaryStrategy {
protected readonly sources!: AuxiliaryStrategy[];
protected readonly sources: AuxiliaryStrategy[] = [];

public constructor(sources: AuxiliaryStrategy[]) {
super(sources);
this.sources = sources;
}

public usesOwnAuthorization(identifier: ResourceIdentifier): boolean {
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
@@ -1,6 +1,7 @@
{
"extends": "@tsconfig/node14/tsconfig.json",
"extends": "@tsconfig/node18/tsconfig.json",
"compilerOptions": {
"lib": [ "es2021" ],
"declaration": true,
"incremental": true,
"inlineSources": true,
Expand Down

0 comments on commit e7010a8

Please sign in to comment.