Skip to content

Commit

Permalink
build(deps): updated kopflos core
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Apr 22, 2024
1 parent d807430 commit f079ee6
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 128 deletions.
2 changes: 1 addition & 1 deletion .changeset/lucky-chairs-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
"@hydrofoil/labyrinth": patch
---

ESM
BREAKING: ESM
9 changes: 7 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { NamedNode } from '@rdfjs/types'
import { HydraBox, middleware, ResourceLoader } from '@kopflos-cms/core'
import { middleware, ResourceLoader } from '@kopflos-cms/core'
import { HydraBoxMiddleware } from '@kopflos-cms/core/middleware.js'
import cors from 'cors'
import { Router } from 'express'
Expand All @@ -18,10 +18,15 @@ export interface User {
id?: NamedNode
}

declare module '@kopflos-cms/core/middleware.js' {
interface AdditionalFactories {
labyrinth: Environment
}
}

declare module 'express-serve-static-core' {
export interface Request {
user?: User
hydra: HydraBox<Environment>
labyrinth: {
sparql: IStreamClient
collection: {
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"devDependencies": {
"@changesets/cli": "^2.27.1",
"@kopflos-cms/core": "^0.2.0",
"@kopflos-cms/core": "^0.2.1",
"@rdfine/hydra": "^0.10.5",
"@rdfjs/express-handler": "^2.0.0",
"@rdfjs/formats": "^4",
Expand Down
120 changes: 0 additions & 120 deletions patches/@kopflos-cms+core+0.2.0.patch

This file was deleted.

0 comments on commit f079ee6

Please sign in to comment.