@connecttomahdi/rxdb 17.1.0 → 17.1.1

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.
Files changed (45) hide show
  1. package/dist/cjs/plugins/storage-dexie/rx-storage-instance-dexie.js +10 -10
  2. package/dist/cjs/plugins/storage-dexie/rx-storage-instance-dexie.js.map +1 -1
  3. package/dist/cjs/plugins/utils/utils-premium.js +4 -4
  4. package/dist/cjs/plugins/utils/utils-premium.js.map +1 -1
  5. package/dist/esm/package.json +1 -0
  6. package/dist/esm/plugins/storage-dexie/rx-storage-instance-dexie.js +10 -10
  7. package/dist/esm/plugins/storage-dexie/rx-storage-instance-dexie.js.map +1 -1
  8. package/dist/esm/plugins/utils/utils-premium.js +4 -4
  9. package/dist/esm/plugins/utils/utils-premium.js.map +1 -1
  10. package/dist/types/index.d.ts +26 -25
  11. package/dist/types/types/conflict-handling.d.ts +48 -0
  12. package/dist/types/types/couchdb.d.ts +293 -0
  13. package/dist/types/types/index.d.ts +32 -0
  14. package/dist/types/types/modules/index.d.ts +0 -0
  15. package/dist/types/types/modules/mocha.parallel.d.ts +1 -0
  16. package/dist/types/types/plugins/backup.d.ts +35 -0
  17. package/dist/types/types/plugins/cleanup.d.ts +38 -0
  18. package/dist/types/types/plugins/crdt.d.ts +76 -0
  19. package/dist/types/types/plugins/dexie.d.ts +30 -0
  20. package/dist/types/types/plugins/local-documents.d.ts +49 -0
  21. package/dist/types/types/plugins/migration.d.ts +14 -0
  22. package/dist/types/types/plugins/reactivity.d.ts +40 -0
  23. package/dist/types/types/plugins/replication-graphql.d.ts +98 -0
  24. package/dist/types/types/plugins/replication.d.ts +175 -0
  25. package/dist/types/types/plugins/state.d.ts +4 -0
  26. package/dist/types/types/plugins/update.d.ts +23 -0
  27. package/dist/types/types/plugins/webmcp.d.ts +40 -0
  28. package/dist/types/types/query-planner.d.ts +47 -0
  29. package/dist/types/types/replication-protocol.d.ts +296 -0
  30. package/dist/types/types/rx-attachment.d.ts +46 -0
  31. package/dist/types/types/rx-change-event.d.ts +85 -0
  32. package/dist/types/types/rx-collection.d.ts +117 -0
  33. package/dist/types/types/rx-database-internal-store.d.ts +54 -0
  34. package/dist/types/types/rx-database.d.ts +124 -0
  35. package/dist/types/types/rx-document.d.ts +160 -0
  36. package/dist/types/types/rx-error.d.ts +225 -0
  37. package/dist/types/types/rx-plugin.d.ts +167 -0
  38. package/dist/types/types/rx-query.d.ts +144 -0
  39. package/dist/types/types/rx-schema.d.ts +214 -0
  40. package/dist/types/types/rx-storage.d.ts +347 -0
  41. package/dist/types/types/rx-storage.interface.d.ts +312 -0
  42. package/dist/types/types/util.d.ts +180 -0
  43. package/package.json +732 -732
  44. package/scripts/copy-path.mjs +20 -0
  45. package/scripts/fix-types.mjs +15 -8
@@ -0,0 +1,20 @@
1
+ import { promises as fs } from 'node:fs';
2
+
3
+ async function main() {
4
+ const [, , sourcePath, targetPath] = process.argv;
5
+
6
+ if (!sourcePath || !targetPath) {
7
+ console.error('copy-path requires <source> and <target>');
8
+ process.exit(1);
9
+ }
10
+
11
+ await fs.cp(sourcePath, targetPath, {
12
+ recursive: true,
13
+ force: true
14
+ });
15
+ }
16
+
17
+ main().catch(err => {
18
+ console.error(`copy-path error: ${err.message}`);
19
+ process.exit(1);
20
+ });
@@ -1,11 +1,18 @@
1
- import { promises as fs } from 'node:fs';
2
-
3
- async function main () {
4
- const file = './dist/types/index.d.ts';
5
- try {
6
- let content = await fs.readFile(file, { encoding: 'utf-8' });
7
- // Convert only bare '.ts' specifier endings, keep existing '.d.ts' intact.
8
- content = content.replace(/(?<!\.d)\.ts(?=['"])/g, '.d.ts');
1
+ import { promises as fs } from 'node:fs';
2
+
3
+ async function main () {
4
+ const sourceTypesDir = './src/types';
5
+ const targetTypesDir = './dist/types/types';
6
+ const file = './dist/types/index.d.ts';
7
+ try {
8
+ await fs.cp(sourceTypesDir, targetTypesDir, {
9
+ recursive: true,
10
+ force: true
11
+ });
12
+
13
+ let content = await fs.readFile(file, { encoding: 'utf-8' });
14
+ // Convert only bare '.ts' specifier endings, keep existing '.d.ts' intact.
15
+ content = content.replace(/(?<!\.d)\.ts(?=['"])/g, '.d.ts');
9
16
 
10
17
  // Guard against malformed declaration specifiers.
11
18
  if (/\.d\.d\.ts(?=['"])/.test(content)) {