Skip to content

Commit

Permalink
[patch] update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
electrovir committed Mar 30, 2024
1 parent 6e69957 commit 7a01630
Show file tree
Hide file tree
Showing 18 changed files with 1,907 additions and 1,515 deletions.
3,222 changes: 1,809 additions & 1,413 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@
"test:types": "npm run compile"
},
"devDependencies": {
"cspell": "^8.4.1",
"dependency-cruiser": "^16.2.1",
"esbuild": "^0.20.1",
"cspell": "^8.6.1",
"dependency-cruiser": "^16.2.4",
"esbuild": "^0.20.2",
"html-spec-tags": "^2.2.0",
"npm-check-updates": "~16.12.3",
"prettier": "3.2.5",
"prettier-plugin-interpolated-html-tags": "^1.0.5",
"prettier-plugin-jsdoc": "^1.3.0",
"prettier-plugin-multiline-arrays": "^3.0.4",
"prettier-plugin-organize-imports": "^3.2.4",
"prettier-plugin-packagejson": "^2.4.12",
"prettier-plugin-sort-json": "^3.1.0",
"prettier-plugin-packagejson": "^2.4.13",
"prettier-plugin-sort-json": "^4.0.0",
"prettier-plugin-toml": "^2.0.1",
"typedoc": "^0.25.9",
"typescript": "^5.3.3",
"virmator": "^11.4.0"
"typedoc": "^0.25.12",
"typescript": "5.3.3",
"virmator": "^11.5.2"
}
}
14 changes: 7 additions & 7 deletions packages/element-book-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@
"test:types": "npm run compile"
},
"dependencies": {
"@augment-vir/browser": "^23.4.0",
"@augment-vir/browser": "^26.2.1",
"element-book": "*",
"element-vir": "*"
},
"devDependencies": {
"@augment-vir/node-js": "^23.4.0",
"@augment-vir/node-js": "^26.2.1",
"@open-wc/testing": "^4.0.0",
"@types/mocha": "^10.0.6",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.0",
"@web/test-runner": "^0.18.1",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"esbuild": "^0.20.1",
"esbuild": "^0.20.2",
"istanbul-smart-text-reporter": "^1.1.4",
"markdown-code-example-inserter": "^1.0.0",
"typedoc": "^0.25.9",
"typescript": "^5.3.3",
"typedoc": "^0.25.12",
"typescript": "5.3.3",
"vite": "^4.5.0",
"vite-tsconfig-paths": "^4.3.1"
"vite-tsconfig-paths": "^4.3.2"
}
}
22 changes: 11 additions & 11 deletions packages/element-book/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,31 +42,31 @@
"test:watch": "web-test-runner --color --watch --config configs/web-test-runner.config.mjs"
},
"dependencies": {
"@augment-vir/browser": "^23.4.0",
"@augment-vir/common": "^23.4.0",
"colorjs.io": "0.4.5",
"@augment-vir/browser": "^26.2.1",
"@augment-vir/common": "^26.2.1",
"colorjs.io": "0.5.0",
"lit-css-vars": "^3.0.9",
"spa-router-vir": "^3.0.4",
"typed-event-target": "^3.2.0",
"typed-event-target": "^3.2.1",
"vira": "20.0.9"
},
"devDependencies": {
"@augment-vir/browser-testing": "^23.4.0",
"@augment-vir/browser-testing": "^26.2.1",
"@open-wc/testing": "^4.0.0",
"@types/chai": "^4.3.12",
"@types/chai": "^4.3.14",
"@types/mocha": "^10.0.6",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.0",
"@web/test-runner": "^0.18.1",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"@web/test-runner-visual-regression": "^0.9.0",
"element-vir": "*",
"istanbul-smart-text-reporter": "^1.1.4",
"markdown-code-example-inserter": "^1.0.0",
"run-time-assertions": "^1.0.0",
"type-fest": "^4.10.3",
"typedoc": "^0.25.9",
"typescript": "^5.3.3"
"run-time-assertions": "^1.2.0",
"type-fest": "^4.14.0",
"typedoc": "^0.25.12",
"typescript": "^5.4.3"
},
"peerDependencies": {
"element-vir": ">=17"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {areJsonEqual} from '@augment-vir/common';
import {isJsonEqual} from 'run-time-assertions';
import {BookEntryTypeEnum} from '../../../data/book-entry/book-entry-type';
import {BookTreeNode} from '../../../data/book-tree/book-tree-node';

Expand All @@ -14,16 +14,13 @@ export function shouldShowTreeNodeInNav(
return true;
}

const isParentSelected = areJsonEqual(
selectedPath,
currentNode.fullUrlBreadcrumbs.slice(0, -1),
);
const isParentSelected = isJsonEqual(selectedPath, currentNode.fullUrlBreadcrumbs.slice(0, -1));

if (isParentSelected) {
return true;
}

const isSiblingSelected = areJsonEqual(
const isSiblingSelected = isJsonEqual(
selectedPath?.slice(0, -1),
currentNode.fullUrlBreadcrumbs.slice(0, -1),
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {checkIfEntirelyInScrollView, waitForAnimationFrame} from '@augment-vir/browser';
import {areJsonEqual} from '@augment-vir/common';
import {classMap, css, html, renderIf} from 'element-vir';
import {isJsonEqual} from 'run-time-assertions';
import {Element16Icon, ViraIcon} from 'vira';
import {BookEntryTypeEnum} from '../../../data/book-entry/book-entry-type';
import {isBookTreeNode} from '../../../data/book-tree/book-tree';
Expand Down Expand Up @@ -101,7 +101,7 @@ export const BookNav = defineBookElement<{
class=${classMap({
'title-row': true,
selected: inputs.selectedPath
? areJsonEqual(inputs.selectedPath, treeNode.fullUrlBreadcrumbs)
? isJsonEqual(inputs.selectedPath, treeNode.fullUrlBreadcrumbs)
: false,
})}
>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {waitForAnimationFrame} from '@augment-vir/browser';
import {areJsonEqual, extractErrorMessage, isTruthy} from '@augment-vir/common';
import {extractErrorMessage, isTruthy} from '@augment-vir/common';
import {css, defineElement, defineElementEvent, html, listen} from 'element-vir';
import {isJsonEqual} from 'run-time-assertions';
import {
ControlsWrapper,
createNewControls,
Expand Down Expand Up @@ -116,7 +117,7 @@ export const ElementBookApp = defineElement<ElementBookConfig>()({
function areRoutesNew(newRouteInput: Partial<BookFullRoute>) {
const newRoute = mergeRoutes(newRouteInput);

return !areJsonEqual(state.currentRoute, newRoute);
return !isJsonEqual(state.currentRoute, newRoute);
}

function updateWindowTitle(topNodeTitle: string | undefined) {
Expand Down Expand Up @@ -152,7 +153,7 @@ export const ElementBookApp = defineElement<ElementBookConfig>()({

if (
inputs.elementBookRoutePaths &&
!areJsonEqual(inputs.elementBookRoutePaths, state.currentRoute.paths)
!isJsonEqual(inputs.elementBookRoutePaths, state.currentRoute.paths)
) {
dispatch(new events.pathUpdate(newRoute.paths ?? []));
}
Expand All @@ -161,7 +162,7 @@ export const ElementBookApp = defineElement<ElementBookConfig>()({
try {
if (
inputs.elementBookRoutePaths &&
!areJsonEqual(inputs.elementBookRoutePaths, state.currentRoute.paths)
!isJsonEqual(inputs.elementBookRoutePaths, state.currentRoute.paths)
) {
updateRoutes({paths: inputs.elementBookRoutePaths as any});
}
Expand All @@ -182,7 +183,7 @@ export const ElementBookApp = defineElement<ElementBookConfig>()({
const inputThemeConfig: ThemeConfig = {
themeColor: inputs.themeColor,
};
if (!areJsonEqual(inputThemeConfig, state.colors?.config)) {
if (!isJsonEqual(inputThemeConfig, state.colors?.config)) {
const newTheme = createTheme(inputThemeConfig);
updateState({
colors: {
Expand Down
12 changes: 6 additions & 6 deletions packages/element-vir-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@
"vira": "*"
},
"devDependencies": {
"@augment-vir/browser-testing": "^23.4.0",
"@augment-vir/node-js": "^23.4.0",
"esbuild": "^0.20.1",
"@augment-vir/browser-testing": "^26.2.1",
"@augment-vir/node-js": "^26.2.1",
"esbuild": "^0.20.2",
"markdown-code-example-inserter": "^1.0.0",
"typedoc": "^0.25.9",
"typescript": "^5.3.3",
"typedoc": "^0.25.12",
"typescript": "5.3.3",
"vite": "^4.5.0",
"vite-tsconfig-paths": "^4.3.1"
"vite-tsconfig-paths": "^4.3.2"
}
}
24 changes: 12 additions & 12 deletions packages/element-vir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,34 +38,34 @@
"test:types": "npm run compile"
},
"dependencies": {
"@augment-vir/common": "^23.4.0",
"date-vir": "^5.1.2",
"@augment-vir/common": "^26.2.1",
"date-vir": "^5.1.3",
"lit": "^3.1.2",
"lit-css-vars": "^3.0.9",
"lit-html": "^3.1.2",
"object-shape-tester": "^2.3.2",
"run-time-assertions": "^1.0.0",
"typed-event-target": "^3.2.0"
"run-time-assertions": "^1.2.0",
"typed-event-target": "^3.2.1"
},
"devDependencies": {
"@augment-vir/browser-testing": "^23.4.0",
"@augment-vir/node-js": "^23.4.0",
"@augment-vir/browser-testing": "^26.2.1",
"@augment-vir/node-js": "^26.2.1",
"@istanbuljs/nyc-config-typescript": "^1.0.2",
"@open-wc/testing": "^4.0.0",
"@types/chai": "^4.3.12",
"@types/chai": "^4.3.14",
"@types/mocha": "^10.0.6",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.0",
"@web/test-runner": "^0.18.1",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"@web/test-runner-visual-regression": "^0.9.0",
"html-spec-tags": "^2.2.0",
"istanbul-smart-text-reporter": "^1.1.4",
"markdown-code-example-inserter": "^1.0.0",
"type-fest": "^4.10.3",
"typedoc": "^0.25.9",
"typescript": "^5.3.3",
"type-fest": "^4.14.0",
"typedoc": "^0.25.12",
"typescript": "5.3.3",
"vite": "^4.5.0",
"vite-tsconfig-paths": "^4.3.1"
"vite-tsconfig-paths": "^4.3.2"
}
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
import {
areJsonEqual,
createDeferredPromiseWrapper,
DeferredPromiseWrapper,
ensureError,
JsonCompatibleObject,
MaybePromise,
} from '@augment-vir/common';
import {isPromise} from 'run-time-assertions';
import {isLooseJsonEqual, isPromise} from 'run-time-assertions';
import {ElementVirStateSetup} from '../properties/element-vir-state-setup';
import {SetterObservableProp} from '../properties/observable-prop/setter-observable-prop';

Expand Down Expand Up @@ -168,9 +167,7 @@ export class AsyncObservableProp<

if (
this.lastTrigger === notSetSymbol ||
!areJsonEqual(expandedTrigger as any, this.lastTrigger as any, {
ignoreNonSerializableProperties: true,
})
!isLooseJsonEqual(expandedTrigger as any, this.lastTrigger as any)
) {
this.lastTrigger = expandedTrigger;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import {
import {DefinedTypedEvent, TypedEvent} from '../../typed-event/typed-event';
import {extractElement} from './directive-helpers';

type ListenCallbackReturn = MaybePromise<void>;
/** We don't care at all what this returns, just allow anything! */
type ListenCallbackReturn = MaybePromise<any>;

type PossibleListenerCallbacks<
TypedEventTypeNameGeneric extends string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ export function assertDeclarativeElementDefinition(
export function isDeclarativeElementDefinition(
input: unknown,
): input is DeclarativeElementDefinition {
return wrapInTry({
callback() {
return wrapInTry(
() => {
assertDeclarativeElementDefinition(input);
return true;
},
fallbackValue: false,
});
{
fallbackValue: false,
},
);
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ export const MyWithEvents = defineElementNoInputs({
},
renderCallback({dispatch, events}) {
return html`
<button ${listen('click', () => dispatch(new events.logoutClick(undefined)))}>
log out
</button>
<button ${listen('click', () => dispatch(new events.logoutClick()))}>log out</button>
<button ${listen('click', () => dispatch(new events.randomNumber(Math.random())))}>
generate random number
</button>
Expand Down
10 changes: 5 additions & 5 deletions packages/scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
"update:exports": "ts-node src/vira-scripts/update-all-exports.ts"
},
"dependencies": {
"@augment-vir/common": "^23.4.0",
"@augment-vir/node-js": "^23.4.0",
"@augment-vir/common": "^26.2.1",
"@augment-vir/node-js": "^26.2.1",
"prettier": "^3.2.5"
},
"devDependencies": {
"@types/node": "^20.11.20",
"@types/node": "^20.12.2",
"markdown-code-example-inserter": "^1.0.0",
"typedoc": "^0.25.9",
"typescript": "^5.3.3"
"typedoc": "^0.25.12",
"typescript": "^5.4.3"
}
}
12 changes: 6 additions & 6 deletions packages/theme-vir/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@
"test": "virmator test-web"
},
"dependencies": {
"@augment-vir/common": "^23.4.0"
"@augment-vir/common": "^26.2.1"
},
"devDependencies": {
"@augment-vir/node-js": "^23.4.0",
"@augment-vir/node-js": "^26.2.1",
"@open-wc/testing": "^4.0.0",
"@types/mocha": "^10.0.6",
"@web/dev-server-esbuild": "^1.0.2",
"@web/test-runner": "^0.18.0",
"@web/test-runner": "^0.18.1",
"@web/test-runner-commands": "^0.9.0",
"@web/test-runner-playwright": "^0.11.0",
"@web/test-runner-visual-regression": "^0.9.0",
"esbuild": "^0.20.1",
"esbuild": "^0.20.2",
"istanbul-smart-text-reporter": "^1.1.4",
"typescript": "^5.3.3",
"typescript": "5.3.3",
"vite": "^4.5.2",
"vite-tsconfig-paths": "^4.3.1"
"vite-tsconfig-paths": "^4.3.2"
},
"peerDependencies": {
"element-book": ">=17",
Expand Down
12 changes: 6 additions & 6 deletions packages/vira-book/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,19 @@
"test": "exit 0;"
},
"dependencies": {
"@augment-vir/common": "^23.4.0",
"@augment-vir/common": "^26.2.1",
"element-book": "*",
"element-vir": "*",
"vira": "*"
},
"devDependencies": {
"@augment-vir/node-js": "^23.4.0",
"esbuild": "^0.20.1",
"@augment-vir/node-js": "^26.2.1",
"esbuild": "^0.20.2",
"markdown-code-example-inserter": "^1.0.0",
"nodemon": "^3.1.0",
"typedoc": "^0.25.9",
"typescript": "^5.3.3",
"typedoc": "^0.25.12",
"typescript": "5.3.3",
"vite": "^4.5.0",
"vite-tsconfig-paths": "^4.3.1"
"vite-tsconfig-paths": "^4.3.2"
}
}
Loading

0 comments on commit 7a01630

Please sign in to comment.