orange-orm 4.7.12 → 4.7.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/docs/changelog.md CHANGED
@@ -1,4 +1,6 @@
1
1
  ## Changelog
2
+ __4.7.13__
3
+ Change in *.d.ts: Allow count, delete and deleteCascade to have no arguments.
2
4
  __4.7.12__
3
5
  Bugfix: Bun Postgres: Race Condition After Transaction Commit [#133](https://github.com/alfateam/orange-orm/issues/133)
4
6
  __4.7.11__
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orange-orm",
3
- "version": "4.7.12",
3
+ "version": "4.7.13",
4
4
  "main": "./src/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "browser": "./dist/index.browser.mjs",
@@ -50,8 +50,8 @@
50
50
  },
51
51
  "scripts": {
52
52
  "test": "vitest run --threads=false",
53
- "test:bun": "bun test --timeout=30000 ./tests/*.bun.test.js",
54
- "test:deno": "deno test --allow-all --unstable *.deno.test.js",
53
+ "test:bun": "bun test --timeout=30000 ./tests/*.bun.test.js",
54
+ "test:deno": "deno test --allow-all --unstable-detect-cjs ./tests/*.deno.test.js",
55
55
  "test:all": "echo 'Running Node.js tests...' && npm run test:node && echo 'Running Bun tests...' && npm run test:bun && echo 'Running Deno tests...' && npm run test:deno && echo 'All tests completed!'",
56
56
  "test:all:parallel": "concurrently \"npm:test:node\" \"npm:test:bun\" \"npm:test:deno\"",
57
57
  "coverage": "vitest run --coverage.enabled --coverage.reporter='text-summary' --threads=false",
package/src/map2.d.ts CHANGED
@@ -713,9 +713,9 @@ export type TableClient<M extends Record<string, TableDefinition<M>>, K extends
713
713
  ): Promise<WithArrayActiveRecord<Array<DeepExpand<Selection<M, K, strategy>>>, M, K>>;
714
714
 
715
715
  // Count and delete methods (no active record methods needed)
716
- count(filter: RawFilter | Array<PrimaryKeyObject<M, K>>,): Promise<number>;
717
- delete(filter: RawFilter | Array<PrimaryKeyObject<M, K>>,): Promise<void>;
718
- deleteCascade(filter: RawFilter | Array<PrimaryKeyObject<M, K>>,): Promise<void>;
716
+ count(filter?: RawFilter | Array<PrimaryKeyObject<M, K>>,): Promise<number>;
717
+ delete(filter?: RawFilter | Array<PrimaryKeyObject<M, K>>,): Promise<void>;
718
+ deleteCascade(filter?: RawFilter | Array<PrimaryKeyObject<M, K>>,): Promise<void>;
719
719
 
720
720
  // UPDATED: Replace methods with relations support
721
721
  replace(