@lucashw68/nsdb 1.0.0-rc.2

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 (49) hide show
  1. package/CHANGELOG.md +34 -0
  2. package/GET_STARTED.md +709 -0
  3. package/LICENSE +21 -0
  4. package/README.md +159 -0
  5. package/cli/index.js +83 -0
  6. package/helpers/args.js +22 -0
  7. package/helpers/config.js +142 -0
  8. package/helpers/generated.js +48 -0
  9. package/helpers/io.js +39 -0
  10. package/helpers/metadata.js +19 -0
  11. package/helpers/names.js +16 -0
  12. package/helpers/relations.js +101 -0
  13. package/helpers/shell.js +15 -0
  14. package/helpers/tables.js +79 -0
  15. package/helpers/ts.js +37 -0
  16. package/module.ts +151 -0
  17. package/nsdb.config.example.mjs +39 -0
  18. package/nsdb.config.example.ts +42 -0
  19. package/package.json +114 -0
  20. package/runtime/components/Form/NsdbRelationSelect.vue +258 -0
  21. package/runtime/components/NsdbForm.vue +865 -0
  22. package/runtime/components/NsdbList.vue +961 -0
  23. package/runtime/composables/useNsdbProfile.ts +119 -0
  24. package/runtime/composables/useNsdbSchemas.ts +176 -0
  25. package/runtime/composables/useSupabaseApi.ts +177 -0
  26. package/runtime/composables/useSupabaseApiStorage.ts +337 -0
  27. package/runtime/composables/useSupabaseModels.ts +412 -0
  28. package/runtime/query.ts +126 -0
  29. package/runtime/stores/createDbStore.ts +439 -0
  30. package/runtime/stores/createSingletonDbStore.ts +67 -0
  31. package/runtime/utils/dataFreshness.ts +47 -0
  32. package/runtime/utils/storage.ts +41 -0
  33. package/scripts/clear.js +64 -0
  34. package/scripts/generate-composables.js +100 -0
  35. package/scripts/generate-enums.js +106 -0
  36. package/scripts/generate-metadata.js +165 -0
  37. package/scripts/generate-models.js +164 -0
  38. package/scripts/generate-schemas.js +443 -0
  39. package/scripts/generate-stores.js +90 -0
  40. package/scripts/generate-types.js +196 -0
  41. package/scripts/init.js +225 -0
  42. package/templates/model.template.ts +48 -0
  43. package/templates/schema.template.ts +13 -0
  44. package/templates/useNsdbModel.template.ts +9 -0
  45. package/types/config.ts +50 -0
  46. package/types/entities.ts +66 -0
  47. package/types/index.ts +14 -0
  48. package/types/list.ts +78 -0
  49. package/types/model.ts +57 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,34 @@
1
+ # Changelog
2
+
3
+ ## 1.0.0-rc.2 — release candidate
4
+
5
+ - adds the MIT license to the public repository and npm package;
6
+ - removes internal development documents and adds public repository,
7
+ contribution, and security entry points;
8
+ - installs NSDB dependencies before the linked playground in CI so Nuxt can
9
+ load the module during `Example` postinstall;
10
+ - retains the runtime, generated-model, and component contract validated for
11
+ the first 1.0 release candidate.
12
+
13
+ This candidate has not been published to npm.
14
+
15
+ ## 1.0.0-rc.1 — release candidate
16
+
17
+ - freezes the generated model vocabulary around `fetch`, `refresh`,
18
+ `invalidate`, `getById`, `create`, `update`, `remove`, `subscribe`, and
19
+ `unsubscribe`;
20
+ - accepts either a generated primary-key value or a complete model row as the
21
+ target of `update` and `remove`, without copying row fields into mutations;
22
+ - removes the pre-1.0 aliases documented in the migration guide;
23
+ - ships typed PostgreSQL metadata, column exposure and relation aliases;
24
+ - stabilizes optional identity-scoped Pinia caching and opt-in Realtime;
25
+ - stabilizes the metadata-driven `NsdbList` and `NsdbForm` contracts;
26
+ - prevents `NsdbList` automatic loading from producing SSR hydration races;
27
+ - keeps explicit `--db-url` generation independent from a remote project ID
28
+ loaded through `.env`;
29
+ - validates the dynamic low-level API with `@nuxtjs/supabase` 2.x typed clients;
30
+ - declares the Nuxt 4.2.1 / Vue 3.5.24 release-candidate compatibility floor;
31
+ - validates the source package through three independent Nuxt tarball
32
+ consumers, local Supabase/Auth/RLS/Storage/Realtime and Chromium.
33
+
34
+ The `v1.0.0-rc.1` tag exists, but this version was never published to npm.