diff --git a/.changeset/funny-lies-taste.md b/.changeset/funny-lies-taste.md deleted file mode 100644 index 6fa8582..0000000 --- a/.changeset/funny-lies-taste.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@hydrofoil/talos-core": patch -"@hydrofoil/talos": patch ---- - -Prettier logs diff --git a/.changeset/heavy-sheep-taste.md b/.changeset/heavy-sheep-taste.md deleted file mode 100644 index f414163..0000000 --- a/.changeset/heavy-sheep-taste.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@hydrofoil/talos-core": patch ---- - -Updated `@comunica/query-sparql` to v4.0.2 diff --git a/.changeset/mighty-frogs-thank.md b/.changeset/mighty-frogs-thank.md deleted file mode 100644 index 4801add..0000000 --- a/.changeset/mighty-frogs-thank.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -"@hydrofoil/talos-core": minor -"@hydrofoil/talos": minor ---- - -SPARQL Queries are adjusted to use the base URI calculated from the resource path. For example, in query `/tables/generate.ru`, -the effective base URI would be `/tables/generate/`. This is to align this behavior with how static sources are parsed. -In such case, rename the file to `index.ru` to remove the file name from resolves URIs. diff --git a/.changeset/popular-apricots-flow.md b/.changeset/popular-apricots-flow.md deleted file mode 100644 index 6cbff03..0000000 --- a/.changeset/popular-apricots-flow.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@hydrofoil/talos-core": minor -"@hydrofoil/talos": minor ---- - -Ensures trailing slash in bare-domain resources diff --git a/.changeset/spicy-phones-tease.md b/.changeset/spicy-phones-tease.md deleted file mode 100644 index 02edcf4..0000000 --- a/.changeset/spicy-phones-tease.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@hydrofoil/talos-core": minor -"@hydrofoil/talos": minor ---- - -Base URI behavior changed. Now relative URIs will be resolved against the calculated base including a trailing slash. -The exception is an empty `<>` reference which will be resolved against the base without a trailing slash. -Use `<./>` to create a resource with a trailing slash. - -| File path | URI reference | Resulting URI | -|-------------------|---------------|--------------------| -| `/api/people.ttl` | `<>` | `/api/people` | -| `/api/people.ttl` | `<.>` | `/api/people` | -| `/api/people.ttl` | `<./>` | `/api/people/` | -| `/api/people.ttl` | `` | `/api/people/john` | -| `/api/people.ttl` | `<#john>` | `/api/people#john` | -| `/api/people.ttl` | `<../people>` | `/api/people` | -| `/api/people.ttl` | `<./people>` | `/api/people` | -| `/api/people.ttl` | `` | `/projects` | diff --git a/.changeset/unlucky-dolphins-care.md b/.changeset/unlucky-dolphins-care.md deleted file mode 100644 index 5ddfac7..0000000 --- a/.changeset/unlucky-dolphins-care.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@hydrofoil/talos-core": patch -"@hydrofoil/talos": patch ---- - -Trailing slash in base URI is truncated when resolving relative URI references diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 94b0bd0..d957071 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,37 @@ # @hydrofoil/talos +## 0.8.0 + +### Minor Changes + +- 094d088: SPARQL Queries are adjusted to use the base URI calculated from the resource path. For example, in query `/tables/generate.ru`, the effective base URI would be `/tables/generate/`. This is to align this behavior with how static sources are parsed. In such case, rename the file to `index.ru` to remove the file name from resolves URIs. +- 38c59be: Ensures trailing slash in bare-domain resources +- 094d088: Base URI behavior changed. Now relative URIs will be resolved against the calculated base including a trailing slash. The exception is an empty `<>` reference which will be resolved against the base without a trailing slash. + Use `<./>` to create a resource with a trailing slash. + + | File path | URI reference | Resulting URI | + | ----------------- | ------------- | ------------------ | + | `/api/people.ttl` | `<>` | `/api/people` | + | `/api/people.ttl` | `<.>` | `/api/people` | + | `/api/people.ttl` | `<./>` | `/api/people/` | + | `/api/people.ttl` | `` | `/api/people/john` | + | `/api/people.ttl` | `<#john>` | `/api/people#john` | + | `/api/people.ttl` | `<../people>` | `/api/people` | + | `/api/people.ttl` | `<./people>` | `/api/people` | + | `/api/people.ttl` | `` | `/projects` | + +### Patch Changes + +- b4bf27e: Prettier logs +- 094d088: Trailing slash in base URI is truncated when resolving relative URI references +- Updated dependencies [b4bf27e] +- Updated dependencies [be8f9e4] +- Updated dependencies [094d088] +- Updated dependencies [38c59be] +- Updated dependencies [094d088] +- Updated dependencies [094d088] + - @hydrofoil/talos-core@0.3.0 + ## 0.7.0 ### Minor Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index 31c0001..a39e6b6 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/talos", - "version": "0.7.0", + "version": "0.8.0", "main": "index.js", "type": "module", "bin": { @@ -26,7 +26,7 @@ }, "dependencies": { "@hydrofoil/resource-store": "^0.2.2", - "@hydrofoil/talos-core": "^0.2.0", + "@hydrofoil/talos-core": "^0.3.0", "@hydrofoil/vocabularies": "^2.1.1", "@tpluscode/rdf-string": "^1.3.0", "@tpluscode/sparql-builder": "^3", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 959aab0..0913533 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,31 @@ # @hydrofoil/talos-core +## 0.3.0 + +### Minor Changes + +- 094d088: SPARQL Queries are adjusted to use the base URI calculated from the resource path. For example, in query `/tables/generate.ru`, the effective base URI would be `/tables/generate/`. This is to align this behavior with how static sources are parsed. In such case, rename the file to `index.ru` to remove the file name from resolves URIs. +- 38c59be: Ensures trailing slash in bare-domain resources +- 094d088: Base URI behavior changed. Now relative URIs will be resolved against the calculated base including a trailing slash. The exception is an empty `<>` reference which will be resolved against the base without a trailing slash. + Use `<./>` to create a resource with a trailing slash. + + | File path | URI reference | Resulting URI | + | ----------------- | ------------- | ------------------ | + | `/api/people.ttl` | `<>` | `/api/people` | + | `/api/people.ttl` | `<.>` | `/api/people` | + | `/api/people.ttl` | `<./>` | `/api/people/` | + | `/api/people.ttl` | `` | `/api/people/john` | + | `/api/people.ttl` | `<#john>` | `/api/people#john` | + | `/api/people.ttl` | `<../people>` | `/api/people` | + | `/api/people.ttl` | `<./people>` | `/api/people` | + | `/api/people.ttl` | `` | `/projects` | + +### Patch Changes + +- b4bf27e: Prettier logs +- be8f9e4: Updated `@comunica/query-sparql` to v4.0.2 +- 094d088: Trailing slash in base URI is truncated when resolving relative URI references + ## 0.2.0 ### Minor Changes diff --git a/packages/core/package.json b/packages/core/package.json index 5488fce..73efc23 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@hydrofoil/talos-core", - "version": "0.2.0", + "version": "0.3.0", "type": "module", "main": "index.js", "scripts": {