Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependencies #319

Merged
merged 8 commits into from
Dec 6, 2024
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,424 changes: 1,623 additions & 801 deletions package-lock.json

Large diffs are not rendered by default.

10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"@tpluscode/eslint-config": "^0.5.0",
"@typescript-eslint/eslint-plugin": "^7.1.0",
"@typescript-eslint/parser": "^7.1.0",
"@web/test-runner-puppeteer": "^0.17.0",
"@web/dev-server-esbuild": "^0.4.4",
"@web/dev-server-rollup": "^0.6.4",
"@web/test-runner": "^0.19",
Expand All @@ -42,9 +43,9 @@
"standard": "^17.0.0",
"ts-lit-plugin": "^2.0.2",
"ts-node": "^10.9.1",
"typedoc": "^0.25.12",
"typescript": "^5.4.3",
"vite": "^5.2.14",
"typedoc": "^0.27.3",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"web-component-analyzer": "^1.1.6",
"wsrun": "^5.2.4"
},
Expand All @@ -60,8 +61,5 @@
"ts-sinon": {
"sinon": "19.0.2"
}
},
"dependencies": {
"@web/test-runner-puppeteer": "^0.17.0"
}
}
4 changes: 2 additions & 2 deletions packages/core-tests/components.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('components', () => {
let value: PropertyObjectState<EnumSelect>
let updateComponentState: sinon.SinonSpy
let focusNode: GraphPointer<BlankNode>
let actions: SinonStubbedInstance<SingleEditorActions>
const actions: SinonStubbedInstance<SingleEditorActions> = {} as any

before(() => {
setEnv($rdf)
Expand Down Expand Up @@ -151,7 +151,7 @@ describe('components', () => {
let value: PropertyObjectState<InstancesSelect>
let updateComponentState: sinon.SinonSpy
let focusNode: GraphPointer<BlankNode>
let actions: SinonStubbedInstance<SingleEditorActions>
const actions: SinonStubbedInstance<SingleEditorActions> = {} as any

beforeEach(() => {
form = {
Expand Down
12 changes: 6 additions & 6 deletions packages/core-tests/models/forms/reducers/editors.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ describe('core/models/forms/reducers/editors', () => {

// then
const propertyState = after.focusNodes[focusNode.value].properties[0]
expect(propertyState.objects).to.containAll<PropertyObjectState>(o => o.editorSwitchDisabled === true)
expect(propertyState.objects).to.containAll((o: PropertyObjectState) => o.editorSwitchDisabled === true)
})

it('can enable all editor switches', () => {
Expand All @@ -56,7 +56,7 @@ describe('core/models/forms/reducers/editors', () => {

// then
const propertyState = after.focusNodes[focusNode.value].properties[0]
expect(propertyState.objects).to.containAll<PropertyObjectState>(o => o.editorSwitchDisabled === false)
expect(propertyState.objects).to.containAll((o: PropertyObjectState) => o.editorSwitchDisabled === false)
})
})

Expand Down Expand Up @@ -162,7 +162,7 @@ describe('core/models/forms/reducers/editors', () => {
const objects = Object.values(after.focusNodes)
.flatMap(focusNode => focusNode.properties)
.flatMap(property => property.objects)
expect(objects).to.containAll<PropertyObjectState>(object => dash.TextFieldEditor.equals(object.selectedEditor))
expect(objects).to.containAll((object: PropertyObjectState) => dash.TextFieldEditor.equals(object.selectedEditor))
})

it('sets multi editor if matched', () => {
Expand Down Expand Up @@ -191,7 +191,7 @@ describe('core/models/forms/reducers/editors', () => {
// then
const properties = Object.values(after.focusNodes)
.flatMap(focusNode => focusNode.properties)
expect(properties).to.containAll<PropertyState>(prop => dash.TextFieldEditor.equals(prop.selectedEditor))
expect(properties).to.containAll((prop: PropertyState) => dash.TextFieldEditor.equals(prop.selectedEditor))
})

it('does not change multi editor if previously selected', () => {
Expand Down Expand Up @@ -221,7 +221,7 @@ describe('core/models/forms/reducers/editors', () => {
// then
const properties = Object.values(after.focusNodes)
.flatMap(focusNode => focusNode.properties)
expect(properties).to.containAll<PropertyState>(prop => property.selectedEditor === prop.selectedEditor)
expect(properties).to.containAll((prop: PropertyState) => property.selectedEditor === prop.selectedEditor)
})

it('does not change object editor if previously selected', () => {
Expand Down Expand Up @@ -253,7 +253,7 @@ describe('core/models/forms/reducers/editors', () => {
const objects = Object.values(after.focusNodes)
.flatMap(focusNode => focusNode.properties)
.flatMap(prop => prop.objects)
expect(objects).to.containAll<PropertyObjectState>(obj => obj.selectedEditor?.value === dash.TextFieldEditor.value)
expect(objects).to.containAll((obj: PropertyObjectState) => obj.selectedEditor?.value === dash.TextFieldEditor.value)
})
})
})
4 changes: 2 additions & 2 deletions packages/core-tests/models/forms/reducers/properties.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ describe('@hydrofoil/shaperone-core/models/forms/reducers/properties', () => {
const after = hideProperty(store.getState().form, { focusNode, shape: $rdf.rdfine.sh.NodeShape(shape) })

// then
expect(after.focusNodes[focusNode.value].properties).to.containAll<PropertyState>(shape => shape.hidden)
expect(after.focusNodes[focusNode.value].properties).to.containAll((shape: PropertyState) => shape.hidden)
})
})

Expand Down Expand Up @@ -82,7 +82,7 @@ describe('@hydrofoil/shaperone-core/models/forms/reducers/properties', () => {
const after = showProperty(store.getState().form, { focusNode, shape: $rdf.rdfine.sh.NodeShape(shape) })

// then
expect(after.focusNodes[focusNode.value].properties).to.containAll<PropertyState>(shape => !shape.hidden)
expect(after.focusNodes[focusNode.value].properties).to.containAll((shape: PropertyState) => !shape.hidden)
})
})
})
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ describe('models/resources/effects/forms/createFocusNodeState', () => {

// then
expect(focusNode.out(schema.knows).out(rdf.type).terms)
.containAll<Term>(type => type.equals(schema.Person))
.containAll((type: Term) => type.equals(schema.Person))
})
it('does not add rdf:type to named node children', () => {
// given
Expand Down
19 changes: 9 additions & 10 deletions packages/core-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,31 @@
"version": "0.1.1",
"type": "module",
"scripts": {
"test": "mocha \"**/*.ts\""
"test": "mocha \"**/*.ts\" --exclude \"node_modules/**/*.ts\""
},
"devDependencies": {
"@hydrofoil/shaperone-core": "*",
"@rdfine/shacl": "^0.10.5",
"@shaperone/testing": "*",
"@tpluscode/rdf-ns-builders": "^4.3.0",
"@zazuko/env": "^2.1.0",
"chai": "^4.2.0",
"mocha": "^10.0.0",
"@types/chai": "^4.2.11",
"@types/chai-subset": "^1.3.3",
"@types/chai-quantifiers": "^1.0.0",
"@types/mocha": "^9.1.1",
"chai": "^5",
"mocha": "^11.0.0",
"@types/chai": "^5",
"@types/chai-subset": "^1.3.5",
"@types/mocha": "^10.0.10",
"@types/sinon-chai": "^3.2.4",
"autoesm": "^1.0.5",
"chai-snapshot-matcher": "^1.0.6",
"chai-snapshot-matcher": "^2.0.3",
"chai-subset": "^1.6.0",
"chai-quantifiers": "^1.0.10",
"chai-quantifiers": "^1.0.18",
"deepmerge": "^4.2.2",
"promise-the-world": "^1.0.1",
"rdf-dataset-ext": "^1.1.0"
},
"mocha": {
"require": [
"./test-setup.js"
"./test-setup.ts"
],
"loader": "ts-node/esm/transpile-only"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'chai-snapshot-matcher'
import chaiQuantifiers from 'chai-quantifiers'
import chai from 'chai'
import * as chai from 'chai'
import sinonChai from 'sinon-chai'
import chaiSubset from 'chai-subset'
import type { RequiredEnvironment } from '@hydrofoil/shaperone-core/env.js'
import { setEnv } from '@hydrofoil/shaperone-core/env.js'
import rdf from '@zazuko/env'

Expand All @@ -12,6 +13,6 @@ chai.use(chaiSubset)

export const mochaHooks = {
beforeAll() {
setEnv(rdf)
setEnv(rdf as unknown as RequiredEnvironment)
},
}
2 changes: 1 addition & 1 deletion packages/rdx
Submodule rdx updated 1 files
+4 −4 package.json
2 changes: 1 addition & 1 deletion packages/wc-vaadin/test/components.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('wc-vaadin/components', () => {
let property: PropertyState
let value: PropertyObjectState
let updateComponentState: UpdateComponentState
let actions: SinonStubbedInstance<SingleEditorActions>
const actions: SinonStubbedInstance<SingleEditorActions> = {} as any

beforeEach(() => {
focusNode = $rdf.clownface().blankNode()
Expand Down
Loading