Skip to content

Commit 25f2a4c

Browse files
authored
Merge pull request #60 from IIIF-Commons/feature/presentation-4.0
Presentation 4.0
2 parents 6006c54 + 8dd1762 commit 25f2a4c

551 files changed

Lines changed: 246793 additions & 33197 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/build-test.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
node: ['18', '22']
10+
node: ["22", "24"]
1111

1212
name: Node ${{ matrix.node }} build
1313
steps:
@@ -19,15 +19,18 @@ jobs:
1919

2020
- uses: pnpm/action-setup@v3
2121
with:
22-
version: 9
22+
version: 11.13.0
2323
run_install: |
2424
- recursive: true
2525
args: [--frozen-lockfile, --strict-peer-dependencies]
2626
2727
- run: pnpm run build
2828
- run: pnpm run test
29-
- run: pnpm run lint
29+
- run: pnpm run lint:pkg
3030
- run: pnpm run typecheck
31+
- run: pnpm run test:package-types
32+
- run: node scripts/typecheck-p4-json-fixtures.mjs
33+
- run: node scripts/typecheck-p4-normalized-fixtures.mjs
3134
- run: node pkg-tests/node-load.cjs
3235
- run: node pkg-tests/node-load.mjs
3336
- run: node pkg-tests/node-umd.mjs

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Release NPM package
22

33
on:
44
push:
5-
tags: ['v*']
5+
tags: ["v*"]
66

77
jobs:
88
build:
@@ -13,19 +13,20 @@ jobs:
1313
- name: Setup node
1414
uses: actions/setup-node@v2
1515
with:
16-
node-version: '20.x'
16+
node-version: "24.x"
1717

1818
- uses: pnpm/action-setup@v3
1919
with:
20-
version: 9
20+
version: 11.13.0
2121
run_install: |
2222
- recursive: true
2323
args: [--frozen-lockfile, --strict-peer-dependencies]
2424
2525
- run: pnpm build
2626
- run: pnpm run test
27-
- run: pnpm run lint
27+
- run: pnpm run lint:pkg
2828
- run: pnpm run typecheck
29+
- run: pnpm run test:package-types
2930

3031
release:
3132
needs: [build]
@@ -36,15 +37,15 @@ jobs:
3637
- name: Setup node
3738
uses: actions/setup-node@v2
3839
with:
39-
node-version: '20.x'
40+
node-version: "24.x"
4041

4142
- name: Set tag
4243
id: tagName
4344
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
4445

4546
- uses: pnpm/action-setup@v3
4647
with:
47-
version: 9
48+
version: 11.13.0
4849
run_install: |
4950
- recursive: true
5051
args: [--frozen-lockfile, --strict-peer-dependencies]

.oxfmtrc.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"singleQuote": false,
4+
"printWidth": 120,
5+
"trailingComma": "es5",
6+
"sortPackageJson": false,
7+
"ignorePatterns": []
8+
}

.prettierrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"editor.defaultFormatter": "oxc.oxc-vscode",
3+
"editor.formatOnSave": true
4+
}

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
### Fixed
1111

1212
- Fixed incorrectly formatted label/value maps in Manifests (#33)
13+
1314
<!--
1415
1516
### Fixed
@@ -74,6 +75,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7475
- `Collection` now has a `iiif-parser:hasPart` when normalized
7576

7677
[^1]: A `Reference<T>` has the shape: `{ id: string, type: T }` and is usually narrowed to one or more types
78+
7779
[^2]: SpecificResource is defined by the W3C Annotation specification, but in short you can access the original reference by accessing `specificResource.source`
80+
7881
[^3]: These properties were added to the specification pre-3.0 and then later removed.
82+
7983
[^4]: This does not replace the inline services with references, instead it's a parallel store of normalized services. Editing tools will have to update both. This moves the problem of multiple services with different structures and fields to the user. The normalized structures will be specifically useful for loading Image services progressively in a store without affecting the serialisation of the IIIF.

0 commit comments

Comments
 (0)