@fedify/sqlite 2.1.12 → 2.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sqlite",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./src/mod.ts",
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  //#region src/adapter.d.ts
2
3
  /**
3
4
  * SQLite database adapter.
package/dist/adapter.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
2
-
1
+ /// <reference lib="esnext.temporal" />
3
2
  //#region src/adapter.d.ts
4
3
  /**
5
4
  * SQLite database adapter.
package/dist/kv.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  import { PlatformDatabase } from "#sqlite";
2
3
  import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions } from "@fedify/fedify";
3
4
 
package/dist/kv.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ /// <reference lib="esnext.temporal" />
2
2
  import { PlatformDatabase } from "#sqlite";
3
3
  import { KvKey, KvStore, KvStoreListEntry, KvStoreSetOptions } from "@fedify/fedify";
4
4
 
package/dist/mod.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  import { SqliteKvStore } from "./kv.cjs";
2
3
  import { SqliteMessageQueue } from "./mq.cjs";
3
4
  export { SqliteKvStore, SqliteMessageQueue };
package/dist/mod.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ /// <reference lib="esnext.temporal" />
2
2
  import { SqliteKvStore } from "./kv.js";
3
3
  import { SqliteMessageQueue } from "./mq.js";
4
4
  export { SqliteKvStore, SqliteMessageQueue };
package/dist/mod.js CHANGED
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { SqliteKvStore } from "./kv.js";
3
3
  import { SqliteMessageQueue } from "./mq.js";
4
4
  export { SqliteKvStore, SqliteMessageQueue };
package/dist/mq.d.cts CHANGED
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  import { PlatformDatabase } from "#sqlite";
2
3
  import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "@fedify/fedify";
3
4
 
package/dist/mq.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ /// <reference lib="esnext.temporal" />
2
2
  import { PlatformDatabase } from "#sqlite";
3
3
  import { MessageQueue, MessageQueueEnqueueOptions, MessageQueueListenOptions } from "@fedify/fedify";
4
4
 
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  import { SqliteDatabaseAdapter, SqliteStatementAdapter } from "./adapter.cjs";
2
3
  import { Database, Statement } from "bun:sqlite";
3
4
 
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ /// <reference lib="esnext.temporal" />
2
2
  import { SqliteDatabaseAdapter, SqliteStatementAdapter } from "./adapter.js";
3
3
  import { Database, Statement } from "bun:sqlite";
4
4
 
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { Database } from "bun:sqlite";
3
3
  //#region src/sqlite.bun.ts
4
4
  var SqliteDatabase = class {
@@ -1,3 +1,4 @@
1
+ /// <reference lib="esnext.temporal" />
1
2
  import { SqliteDatabaseAdapter, SqliteStatementAdapter } from "./adapter.cjs";
2
3
  import { DatabaseSync, StatementSync } from "node:sqlite";
3
4
 
@@ -1,4 +1,4 @@
1
- import { Temporal } from "@js-temporal/polyfill";
1
+ /// <reference lib="esnext.temporal" />
2
2
  import { SqliteDatabaseAdapter, SqliteStatementAdapter } from "./adapter.js";
3
3
  import { DatabaseSync, StatementSync } from "node:sqlite";
4
4
 
@@ -1,4 +1,4 @@
1
- import "@js-temporal/polyfill";
1
+ import { Temporal } from "@js-temporal/polyfill";
2
2
  import { DatabaseSync } from "node:sqlite";
3
3
  //#region src/sqlite.node.ts
4
4
  var SqliteDatabase = class {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fedify/sqlite",
3
- "version": "2.1.12",
3
+ "version": "2.1.13",
4
4
  "description": "SQLite drivers for Fedify",
5
5
  "keywords": [
6
6
  "fedify",
@@ -72,13 +72,13 @@
72
72
  "es-toolkit": "^1.31.0"
73
73
  },
74
74
  "peerDependencies": {
75
- "@fedify/fedify": "^2.1.12"
75
+ "@fedify/fedify": "^2.1.13"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@std/async": "npm:@jsr/std__async@^1.0.13",
79
79
  "tsdown": "^0.21.6",
80
- "typescript": "^5.9.2",
81
- "@fedify/testing": "^2.1.12"
80
+ "typescript": "^6.0.0",
81
+ "@fedify/testing": "^2.1.13"
82
82
  },
83
83
  "scripts": {
84
84
  "build:self": "tsdown",
package/tsdown.config.ts CHANGED
@@ -29,16 +29,13 @@ export default defineConfig({
29
29
  defaultHandler(warning);
30
30
  },
31
31
  },
32
- outputOptions(outputOptions, format) {
33
- if (format === "cjs") {
34
- outputOptions.intro = `
35
- const { Temporal } = require("@js-temporal/polyfill");
36
- `;
37
- } else {
38
- outputOptions.intro = `
39
- import { Temporal } from "@js-temporal/polyfill";
40
- `;
41
- }
42
- return outputOptions;
32
+ banner({ format }) {
33
+ const js = format === "cjs"
34
+ ? `const { Temporal } = require("@js-temporal/polyfill");`
35
+ : `import { Temporal } from "@js-temporal/polyfill";`;
36
+ return {
37
+ js,
38
+ dts: `/// <reference lib="esnext.temporal" />`,
39
+ };
43
40
  },
44
41
  });