@drizzle-adapter/d1 1.0.13 → 1.0.14

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.
@@ -1,6 +1,6 @@
1
1
  import type { D1Database } from '@cloudflare/workers-types';
2
- import { D1DrizzleConnection } from './D1DrizzleConnection.js';
3
- import { D1DrizzleDataTypes } from './D1DrizzleDataTypes.js';
2
+ import { D1DrizzleConnection } from './D1DrizzleConnection';
3
+ import { D1DrizzleDataTypes } from './D1DrizzleDataTypes';
4
4
  import type { DrizzleAdapterInterface } from '@drizzle-adapter/core';
5
5
  export declare class D1DrizzleAdapter implements DrizzleAdapterInterface {
6
6
  private connection;
@@ -1,5 +1,5 @@
1
- import { D1DrizzleConnection } from './D1DrizzleConnection.js';
2
- import { D1DrizzleDataTypes } from './D1DrizzleDataTypes.js';
1
+ import { D1DrizzleConnection } from './D1DrizzleConnection';
2
+ import { D1DrizzleDataTypes } from './D1DrizzleDataTypes';
3
3
  export class D1DrizzleAdapter {
4
4
  connection;
5
5
  /**
@@ -1,5 +1,5 @@
1
1
  import type { DrizzleMigratorInterface, TypeDrizzleMigratorConfig } from '@drizzle-adapter/core';
2
- import type { D1DrizzleClientInterface } from '../Interface/index.js';
2
+ import type { D1DrizzleClientInterface } from '../Interface';
3
3
  export declare class D1DrizzleMigrator implements DrizzleMigratorInterface {
4
4
  private readonly config;
5
5
  /**
@@ -1,5 +1,5 @@
1
- import type { TypeD1DatabaseConfig } from '../Type/Types.js';
2
- import { D1DrizzleAdapter } from '../Adapter/D1DrizzleAdapter.js';
1
+ import type { TypeD1DatabaseConfig } from '../Type/Types';
2
+ import { D1DrizzleAdapter } from '../Adapter/D1DrizzleAdapter';
3
3
  import type { DrizzleAdapterFactoryInterface } from '@drizzle-adapter/core';
4
4
  export declare class D1DrizzleAdapterFactory implements DrizzleAdapterFactoryInterface {
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { D1DrizzleAdapter } from '../Adapter/D1DrizzleAdapter.js';
1
+ import { D1DrizzleAdapter } from '../Adapter/D1DrizzleAdapter';
2
2
  export class D1DrizzleAdapterFactory {
3
3
  /**
4
4
  * Returns a adapter.
@@ -1,5 +1,5 @@
1
1
  import type { DrizzleMigratorFactoryInterface, TypeDrizzleMigratorConfig } from '@drizzle-adapter/core';
2
- import { D1DrizzleMigrator } from '../migrator.js';
2
+ import { D1DrizzleMigrator } from '../migrator';
3
3
  export declare class D1DrizzleMigratorFactory implements DrizzleMigratorFactoryInterface {
4
4
  /**
5
5
  * Returns a new migrator.
@@ -1,4 +1,4 @@
1
- import { D1DrizzleMigrator } from '../migrator.js';
1
+ import { D1DrizzleMigrator } from '../migrator';
2
2
  export class D1DrizzleMigratorFactory {
3
3
  /**
4
4
  * Returns a new migrator.
package/dist/index.d.ts CHANGED
@@ -2,5 +2,5 @@ export * from './Adapter';
2
2
  export * from './Factory';
3
3
  export * from './Interface';
4
4
  export * from './Type';
5
- import { D1DrizzleAdapterFactory } from './Factory/index.js';
5
+ import { D1DrizzleAdapterFactory } from './Factory';
6
6
  export default D1DrizzleAdapterFactory;
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ export * from './Factory';
3
3
  export * from './Interface';
4
4
  export * from './Type';
5
5
  // default export so that core factory can use it directly
6
- import { D1DrizzleAdapterFactory, D1DrizzleDataTypesFactory } from './Factory/index.js';
6
+ import { D1DrizzleAdapterFactory, D1DrizzleDataTypesFactory } from './Factory';
7
7
  export default D1DrizzleAdapterFactory;
8
8
  import { DrizzleAdapterFactoryRegistry, DrizzleDataTypesFactoryRegistry } from '@drizzle-adapter/core';
9
9
  DrizzleAdapterFactoryRegistry.registerAdapterFactory('d1', D1DrizzleAdapterFactory);
@@ -1,4 +1,4 @@
1
1
  export * from './Adapter/D1DrizzleMigrator';
2
2
  export * from './Factory/D1DrizzleMigratorFactory';
3
- import { D1DrizzleMigratorFactory } from './Factory/D1DrizzleMigratorFactory.js';
3
+ import { D1DrizzleMigratorFactory } from './Factory/D1DrizzleMigratorFactory';
4
4
  export default D1DrizzleMigratorFactory;
package/dist/migrator.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export * from './Adapter/D1DrizzleMigrator';
2
2
  export * from './Factory/D1DrizzleMigratorFactory';
3
3
  // default export so that core factory can use it directly
4
- import { D1DrizzleMigratorFactory } from './Factory/D1DrizzleMigratorFactory.js';
4
+ import { D1DrizzleMigratorFactory } from './Factory/D1DrizzleMigratorFactory';
5
5
  export default D1DrizzleMigratorFactory;
6
6
  import { DrizzleMigratorFactoryRegistry } from '@drizzle-adapter/core/migrator';
7
7
  DrizzleMigratorFactoryRegistry.registerMigratorFactory('d1', D1DrizzleMigratorFactory);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@drizzle-adapter/d1",
3
3
  "type": "module",
4
- "version": "1.0.13",
4
+ "version": "1.0.14",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -20,7 +20,6 @@
20
20
  "dotenv": "^16.5.0",
21
21
  "eslint": "^8.57.1",
22
22
  "eslint-plugin-unused-imports": "^3.2.0",
23
- "fix-esm-import-path": "^1.10.1",
24
23
  "shx": "^0.3.4",
25
24
  "tsconfig-paths": "^4.2.0",
26
25
  "typescript": "^5.8.3",
@@ -29,15 +28,15 @@
29
28
  },
30
29
  "dependencies": {
31
30
  "drizzle-orm": "^0.36.4",
32
- "@drizzle-adapter/core": "^1.0.10",
33
- "@drizzle-adapter/sqlite-core": "^1.0.9"
31
+ "@drizzle-adapter/sqlite-core": "^1.0.11",
32
+ "@drizzle-adapter/core": "^1.0.11"
34
33
  },
35
34
  "scripts": {
36
35
  "lint": "eslint src/",
37
36
  "format": "eslint --fix src/",
38
37
  "test": "vitest run",
39
38
  "check": "tsc --noEmit",
40
- "build": "shx rm -rf dist && tsc && fix-esm-import-path dist",
39
+ "build": "shx rm -rf dist && tsc",
41
40
  "package:tgz": "pnpm pack",
42
41
  "package:publish": "pnpm publish --access public"
43
42
  }
package/tsconfig.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "target": "ESNext",
6
6
  "module": "ESNext",
7
7
 
8
- // Node module resolution
8
+ // Bundler module resolution (industry standard for libraries)
9
9
  "moduleResolution": "bundler",
10
10
  "verbatimModuleSyntax": true,
11
11
  "esModuleInterop": true,