@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.
- package/CHANGELOG.md +34 -0
- package/GET_STARTED.md +709 -0
- package/LICENSE +21 -0
- package/README.md +159 -0
- package/cli/index.js +83 -0
- package/helpers/args.js +22 -0
- package/helpers/config.js +142 -0
- package/helpers/generated.js +48 -0
- package/helpers/io.js +39 -0
- package/helpers/metadata.js +19 -0
- package/helpers/names.js +16 -0
- package/helpers/relations.js +101 -0
- package/helpers/shell.js +15 -0
- package/helpers/tables.js +79 -0
- package/helpers/ts.js +37 -0
- package/module.ts +151 -0
- package/nsdb.config.example.mjs +39 -0
- package/nsdb.config.example.ts +42 -0
- package/package.json +114 -0
- package/runtime/components/Form/NsdbRelationSelect.vue +258 -0
- package/runtime/components/NsdbForm.vue +865 -0
- package/runtime/components/NsdbList.vue +961 -0
- package/runtime/composables/useNsdbProfile.ts +119 -0
- package/runtime/composables/useNsdbSchemas.ts +176 -0
- package/runtime/composables/useSupabaseApi.ts +177 -0
- package/runtime/composables/useSupabaseApiStorage.ts +337 -0
- package/runtime/composables/useSupabaseModels.ts +412 -0
- package/runtime/query.ts +126 -0
- package/runtime/stores/createDbStore.ts +439 -0
- package/runtime/stores/createSingletonDbStore.ts +67 -0
- package/runtime/utils/dataFreshness.ts +47 -0
- package/runtime/utils/storage.ts +41 -0
- package/scripts/clear.js +64 -0
- package/scripts/generate-composables.js +100 -0
- package/scripts/generate-enums.js +106 -0
- package/scripts/generate-metadata.js +165 -0
- package/scripts/generate-models.js +164 -0
- package/scripts/generate-schemas.js +443 -0
- package/scripts/generate-stores.js +90 -0
- package/scripts/generate-types.js +196 -0
- package/scripts/init.js +225 -0
- package/templates/model.template.ts +48 -0
- package/templates/schema.template.ts +13 -0
- package/templates/useNsdbModel.template.ts +9 -0
- package/types/config.ts +50 -0
- package/types/entities.ts +66 -0
- package/types/index.ts +14 -0
- package/types/list.ts +78 -0
- 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.
|