diff --git a/@coven/compare/deno.json b/@coven/compare/deno.json index 27d3d53..a422838 100644 --- a/@coven/compare/deno.json +++ b/@coven/compare/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/compare", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/constants/deno.json b/@coven/constants/deno.json index eac19a1..da5d5c0 100644 --- a/@coven/constants/deno.json +++ b/@coven/constants/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/constants", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/cron/deno.json b/@coven/cron/deno.json index 7926d09..16f5cb7 100644 --- a/@coven/cron/deno.json +++ b/@coven/cron/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/cron", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/expression/deno.json b/@coven/expression/deno.json index b55c92b..aee135f 100644 --- a/@coven/expression/deno.json +++ b/@coven/expression/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/expression", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/iterables/deno.json b/@coven/iterables/deno.json index 36464dd..a8ea121 100644 --- a/@coven/iterables/deno.json +++ b/@coven/iterables/deno.json @@ -1,8 +1,9 @@ { - "name": "@coven/iterables", - "version": "0.8.4", + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", "exports": { ".": "./mod.ts", "./async": "./async/mod.ts" - } + }, + "name": "@coven/iterables", + "version": "0.8.5" } diff --git a/@coven/math/deno.json b/@coven/math/deno.json index c2ecefa..0ceb419 100644 --- a/@coven/math/deno.json +++ b/@coven/math/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/math", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/memo/README.md b/@coven/memo/README.md index 419d181..c6c9005 100644 --- a/@coven/memo/README.md +++ b/@coven/memo/README.md @@ -5,8 +5,8 @@ 💾 Memoization utilities. -The whole idea is to have an experience similar to what we would get out of the -Record and Tuple proposal from TC39: Readonly memoized structures with +The whole idea is to have an experience similar to we could have gotten out of +the now withdrawn Record and Tuple proposal: Readonly memoized structures with preservation of identity. This library uses nested `Map`s to save a "tree" with references to all diff --git a/@coven/memo/deno.json b/@coven/memo/deno.json index 419979b..4e23613 100644 --- a/@coven/memo/deno.json +++ b/@coven/memo/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/memo", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/pair/deno.json b/@coven/pair/deno.json index f505f5a..fa46608 100644 --- a/@coven/pair/deno.json +++ b/@coven/pair/deno.json @@ -1,8 +1,21 @@ { - "name": "@coven/pair", - "version": "0.8.4", + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "compilerOptions": { + "jsx": "react-jsx", + "jsxImportSource": "preact" + }, "exports": { "./preact": "./preact/mod.ts", "./react": "./react/mod.ts" - } + }, + "imports": { + "@types/react": "npm:@types/react@^19.2.7", + "@types/react-dom": "npm:@types/react-dom@^19.2.3", + "preact": "npm:preact@^10.28.0", + "preact-render-to-string": "npm:preact-render-to-string@^6.6.4", + "react": "npm:react@^19.2.3", + "react-dom": "npm:react-dom@^19.2.3" + }, + "name": "@coven/pair", + "version": "0.8.5" } diff --git a/@coven/pair/preact/pair.ts b/@coven/pair/preact/pair.ts index 8aafab3..c5844e6 100644 --- a/@coven/pair/preact/pair.ts +++ b/@coven/pair/preact/pair.ts @@ -6,7 +6,6 @@ import type { PairedComponentProperties } from "./PairedComponentProperties.ts"; * * @example * ```tsx - * /** @jsxImportSource preact *\/ * import { useState } from "preact/hooks"; * * const useCount = (initialCount: number) => { diff --git a/@coven/pair/preact/tests/preact.test.tsx b/@coven/pair/preact/tests/preact.test.tsx index d7c87ea..be5c568 100644 --- a/@coven/pair/preact/tests/preact.test.tsx +++ b/@coven/pair/preact/tests/preact.test.tsx @@ -1,4 +1,3 @@ -/** @jsxImportSource preact */ import { pair, type PairedComponentProperties } from "@coven/pair/preact"; import { assertStrictEquals } from "@std/assert"; import { renderToString } from "preact-render-to-string"; diff --git a/@coven/pair/react/PairedRenderFunction.ts b/@coven/pair/react/PairedRenderFunction.ts index b0d0220..a9f33bc 100644 --- a/@coven/pair/react/PairedRenderFunction.ts +++ b/@coven/pair/react/PairedRenderFunction.ts @@ -6,6 +6,7 @@ import type { ReactElement } from "react"; * * @example * ```tsx + * /** @jsxImportSource react *\/ * import { createElement, Fragment } from "react"; * * const Example: PairedRenderFunction<() => number> = hook => diff --git a/@coven/parsers/deno.json b/@coven/parsers/deno.json index 9babe6f..b0ae30d 100644 --- a/@coven/parsers/deno.json +++ b/@coven/parsers/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/parsers", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/predicates/deno.json b/@coven/predicates/deno.json index f2bab78..6f207a2 100644 --- a/@coven/predicates/deno.json +++ b/@coven/predicates/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/predicates", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/terminal/deno.json b/@coven/terminal/deno.json index 9fbddeb..451ae05 100644 --- a/@coven/terminal/deno.json +++ b/@coven/terminal/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/terminal", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/types/deno.json b/@coven/types/deno.json index 688f120..1554ff5 100644 --- a/@coven/types/deno.json +++ b/@coven/types/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/types", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@coven/utils/deno.json b/@coven/utils/deno.json index b2e13bf..4925295 100644 --- a/@coven/utils/deno.json +++ b/@coven/utils/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@coven/utils", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@simulcast/core/deno.json b/@simulcast/core/deno.json index fcfcf7e..94861c3 100644 --- a/@simulcast/core/deno.json +++ b/@simulcast/core/deno.json @@ -1,5 +1,6 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", "name": "@simulcast/core", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@simulcast/preact/README.md b/@simulcast/preact/README.md index c3c997d..15e0c28 100644 --- a/@simulcast/preact/README.md +++ b/@simulcast/preact/README.md @@ -9,7 +9,6 @@ ## Example ```tsx -/** @jsxImportSource preact */ import { broadcast } from "@simulcast/core"; import { useBroadcast } from "@simulcast/preact"; import type { JSX } from "preact"; diff --git a/@simulcast/preact/deno.json b/@simulcast/preact/deno.json index d704bdb..2146d0e 100644 --- a/@simulcast/preact/deno.json +++ b/@simulcast/preact/deno.json @@ -1,5 +1,15 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "compilerOptions": { + "jsx": "react-jsx", + "jsxImportSource": "preact" + }, + "exports": "./mod.ts", + "imports": { + "@testing-library/preact": "npm:@testing-library/preact@^3.2.4", + "@testing-library/user-event": "npm:@testing-library/user-event@^14.6.1", + "preact": "npm:preact@^10.28.0" + }, "name": "@simulcast/preact", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@simulcast/preact/tests/useBroadcast.test.tsx b/@simulcast/preact/tests/useBroadcast.test.tsx index ec8c5e4..46b99a4 100644 --- a/@simulcast/preact/tests/useBroadcast.test.tsx +++ b/@simulcast/preact/tests/useBroadcast.test.tsx @@ -1,4 +1,3 @@ -/** @jsxImportSource preact */ import { broadcast, type EventRegistry } from "@simulcast/core"; import { useBroadcast } from "@simulcast/preact"; import { assertStrictEquals } from "@std/assert"; diff --git a/@simulcast/preact/useBroadcast.ts b/@simulcast/preact/useBroadcast.ts index 514ebd6..948a9c0 100644 --- a/@simulcast/preact/useBroadcast.ts +++ b/@simulcast/preact/useBroadcast.ts @@ -15,7 +15,6 @@ import { useBroadcastProxyHandler } from "./useBroadcastProxyHandler.ts"; * * @example * ```tsx - * /** @jsxImportSource preact *\/ * import { broadcast } from "@simulcast/core"; * import type { JSX } from "preact"; * diff --git a/@simulcast/react/README.md b/@simulcast/react/README.md index 80a372b..f0d3cf6 100644 --- a/@simulcast/react/README.md +++ b/@simulcast/react/README.md @@ -9,7 +9,6 @@ ## Example ```tsx -/** @jsxImportSource react */ import { broadcast } from "@simulcast/core"; import { useBroadcast } from "@simulcast/react"; import type { MouseEvent } from "react"; diff --git a/@simulcast/react/deno.json b/@simulcast/react/deno.json index a5a6b55..054e6bf 100644 --- a/@simulcast/react/deno.json +++ b/@simulcast/react/deno.json @@ -1,5 +1,16 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "compilerOptions": { + "jsx": "react-jsx", + "jsxImportSource": "react" + }, + "exports": "./mod.ts", + "imports": { + "@testing-library/react": "npm:@testing-library/react@^16.3.1", + "@testing-library/user-event": "npm:@testing-library/user-event@^14.6.1", + "@types/react": "npm:@types/react@^19.2.7", + "react": "npm:react@^19.2.3" + }, "name": "@simulcast/react", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/@simulcast/react/tests/useBroadcast.test.tsx b/@simulcast/react/tests/useBroadcast.test.tsx index 170c888..1df57b8 100644 --- a/@simulcast/react/tests/useBroadcast.test.tsx +++ b/@simulcast/react/tests/useBroadcast.test.tsx @@ -1,4 +1,3 @@ -/** @jsxImportSource react */ import { broadcast, type EventRegistry } from "@simulcast/core"; import { useBroadcast } from "@simulcast/react"; import { assertStrictEquals } from "@std/assert"; diff --git a/@simulcast/react/useBroadcast.ts b/@simulcast/react/useBroadcast.ts index 9d5ec20..87c2411 100644 --- a/@simulcast/react/useBroadcast.ts +++ b/@simulcast/react/useBroadcast.ts @@ -17,7 +17,6 @@ import { useEffect, useMemo } from "react"; * * @example * ```tsx - * /** @jsxImportSource react *\/ * import { broadcast } from "@simulcast/core"; * import type { MouseEvent } from "react"; * diff --git a/@simulcast/vue/deno.json b/@simulcast/vue/deno.json index f272e62..8a24ac4 100644 --- a/@simulcast/vue/deno.json +++ b/@simulcast/vue/deno.json @@ -1,5 +1,10 @@ { + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", + "exports": "./mod.ts", + "imports": { + "@vue/test-utils": "npm:@vue/test-utils@^2.4.6", + "vue": "npm:vue@^3.5.26" + }, "name": "@simulcast/vue", - "version": "0.8.4", - "exports": "./mod.ts" + "version": "0.8.5" } diff --git a/deno.json b/deno.json index 2f6fe0b..fe1abd3 100644 --- a/deno.json +++ b/deno.json @@ -1,9 +1,7 @@ { - "$schema": "https://raw.githubusercontent.com/denoland/deno/refs/heads/main/cli/schemas/config-file.v1.json", + "$schema": "https://raw.githubusercontent.com/denoland/deno/main/cli/schemas/config-file.v1.json", "compilerOptions": { "exactOptionalPropertyTypes": true, - "jsxFactory": "createElement", - "jsxFragmentFactory": "Fragment", "noFallthroughCasesInSwitch": true, "noImplicitOverride": true, "noImplicitReturns": true, @@ -40,18 +38,7 @@ }, "imports": { "@std/assert": "jsr:@std/assert@^1.0.16", - "@testing-library/preact": "npm:@testing-library/preact@^3.2.4", - "@testing-library/react": "npm:@testing-library/react@^16.3.1", - "@testing-library/user-event": "npm:@testing-library/user-event@^14.6.1", - "@types/react": "npm:@types/react@^19.2.7", - "@types/react-dom": "npm:@types/react-dom@^19.2.3", - "@vue/test-utils": "npm:@vue/test-utils@^2.4.6", - "happy-dom": "npm:happy-dom@^20.0.11", - "preact": "npm:preact@~10.28.0", - "preact-render-to-string": "npm:preact-render-to-string@~6.6.4", - "react": "npm:react@^19.2.3", - "react-dom": "npm:react-dom@^19.2.3", - "vue": "npm:vue@^3.5.25" + "happy-dom": "npm:happy-dom@^20.0.11" }, "lint": { "plugins": [ diff --git a/setupTests.ts b/setupTests.ts index 0b904a9..489c78c 100644 --- a/setupTests.ts +++ b/setupTests.ts @@ -9,4 +9,4 @@ const { window, } = new Window(); -Object.assign(globalThis, { window, Element, Node, SVGElement, document }); +Object.assign(globalThis, { Element, Node, SVGElement, document, window });