@sfxcode/nuxt-mongocamp-server 2.3.0 → 2.5.0
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/README.md +24 -2
- package/dist/module.d.mts +10 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +41 -21
- package/dist/runtime/api/.openapi-generator/FILES +4 -0
- package/dist/runtime/api/apis/CollectionApi.d.ts +6 -6
- package/dist/runtime/api/apis/CollectionApi.js +4 -4
- package/dist/runtime/api/apis/DocumentApi.d.ts +42 -14
- package/dist/runtime/api/apis/DocumentApi.js +27 -6
- package/dist/runtime/api/docs/CollectionApi.md +6 -6
- package/dist/runtime/api/docs/CollectionDeclaration.md +4 -0
- package/dist/runtime/api/docs/CollectionDeclarationIndexesInner.md +38 -0
- package/dist/runtime/api/docs/CollectionDeclarationRefsInner.md +38 -0
- package/dist/runtime/api/docs/DocumentApi.md +47 -26
- package/dist/runtime/api/docs/ExportRequest.md +2 -0
- package/dist/runtime/api/docs/MongoFindRequest.md +2 -0
- package/dist/runtime/api/docs/SearchRequest.md +2 -0
- package/dist/runtime/api/models/CollectionDeclaration.d.ts +10 -0
- package/dist/runtime/api/models/CollectionDeclaration.js +14 -0
- package/dist/runtime/api/models/CollectionDeclarationIndexesInner.d.ts +40 -0
- package/dist/runtime/api/models/CollectionDeclarationIndexesInner.js +32 -0
- package/dist/runtime/api/models/CollectionDeclarationRefsInner.d.ts +38 -0
- package/dist/runtime/api/models/CollectionDeclarationRefsInner.js +31 -0
- package/dist/runtime/api/models/ErrorDescription.d.ts +1 -1
- package/dist/runtime/api/models/ExportRequest.d.ts +4 -0
- package/dist/runtime/api/models/ExportRequest.js +4 -2
- package/dist/runtime/api/models/MongoFindRequest.d.ts +4 -0
- package/dist/runtime/api/models/MongoFindRequest.js +4 -2
- package/dist/runtime/api/models/SearchRequest.d.ts +4 -0
- package/dist/runtime/api/models/SearchRequest.js +4 -2
- package/dist/runtime/api/models/index.d.ts +2 -0
- package/dist/runtime/api/models/index.js +2 -0
- package/dist/runtime/composables/mongocampApi.d.ts +4 -0
- package/dist/runtime/composables/mongocampApi.js +10 -2
- package/dist/runtime/composables/mongocampAuth.js +29 -25
- package/dist/runtime/composables/mongocampCollection.d.ts +50 -11
- package/dist/runtime/composables/mongocampCollection.js +85 -21
- package/dist/runtime/composables/mongocampLive.d.ts +5 -2
- package/dist/runtime/composables/mongocampLive.js +30 -5
- package/dist/runtime/composables/mongocampSearch.js +12 -3
- package/dist/runtime/plugins/bson-payload.d.ts +8 -0
- package/dist/runtime/plugins/bson-payload.js +6 -0
- package/dist/runtime/server/composables/mongocampApi.d.ts +5 -1
- package/dist/runtime/server/composables/mongocampApi.js +1 -9
- package/dist/runtime/server/composables/mongocampServerApi.d.ts +4 -0
- package/dist/runtime/server/composables/mongocampServerApi.js +5 -0
- package/dist/runtime/server/composables/mongocampServerCollection.d.ts +20 -0
- package/dist/runtime/server/composables/mongocampServerCollection.js +12 -0
- package/dist/runtime/server/mongocamp/core.d.ts +1 -1
- package/dist/runtime/server/mongocamp/core.js +1 -1
- package/dist/runtime/server/mongocamp/embedded-api.d.ts +18 -0
- package/dist/runtime/server/mongocamp/embedded-api.js +10 -0
- package/dist/runtime/types/collections.d.ts +10 -0
- package/dist/runtime/utils/appState.d.ts +21 -0
- package/dist/runtime/utils/appState.js +11 -0
- package/dist/runtime/utils/bsonPayload.d.ts +8 -0
- package/dist/runtime/utils/bsonPayload.js +10 -0
- package/dist/runtime/utils/buildFieldFilterExpression.d.ts +4 -0
- package/dist/runtime/utils/buildFieldFilterExpression.js +5 -3
- package/dist/runtime/utils/sse.d.ts +1 -1
- package/dist/runtime/utils/sse.js +7 -1
- package/package.json +15 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sfxcode/nuxt-mongocamp-server",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -24,13 +24,15 @@
|
|
|
24
24
|
"files": [
|
|
25
25
|
"dist"
|
|
26
26
|
],
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=22.22.0"
|
|
29
|
+
},
|
|
27
30
|
"build": {
|
|
28
31
|
"failOnWarn": false
|
|
29
32
|
},
|
|
30
33
|
"dependencies": {
|
|
31
34
|
"@nuxt/kit": "^4.7.0",
|
|
32
|
-
"@sfxcode/mongocamp-server-core": "2.
|
|
33
|
-
"@vueuse/nuxt": "^15.1.0",
|
|
35
|
+
"@sfxcode/mongocamp-server-core": "2.5.0",
|
|
34
36
|
"bson": "^7.3.4",
|
|
35
37
|
"consola": "^3.4.2",
|
|
36
38
|
"defu": "^6.1.7"
|
|
@@ -44,6 +46,7 @@
|
|
|
44
46
|
"@openapitools/openapi-generator-cli": "^2.44.0",
|
|
45
47
|
"@types/node": "^26.6.11",
|
|
46
48
|
"@unocss/nuxt": "^66.13.0",
|
|
49
|
+
"@vitest/coverage-v8": "5.1.2",
|
|
47
50
|
"changelogen": "^0.6.2",
|
|
48
51
|
"eslint": "^10.16.0",
|
|
49
52
|
"evlog": "2.37.1",
|
|
@@ -54,6 +57,7 @@
|
|
|
54
57
|
"srvx": "1.0.8",
|
|
55
58
|
"typescript": "6.0.3",
|
|
56
59
|
"vitest": "^5.1.2",
|
|
60
|
+
"vue-tsc": "^3.3.14",
|
|
57
61
|
"zod": "^4.6.7"
|
|
58
62
|
},
|
|
59
63
|
"peerDependencies": {
|
|
@@ -63,7 +67,7 @@
|
|
|
63
67
|
"scripts": {
|
|
64
68
|
"dev": "nuxi dev playground",
|
|
65
69
|
"dev:build": "nuxi build playground",
|
|
66
|
-
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
|
|
70
|
+
"dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground && nuxi prepare docs/tutorial/app",
|
|
67
71
|
"release": "npm run lint && npm run test && npm run prepack && changelogen --minor --release --no-commit --no-tag && node scripts/sync-versions.mjs --commit && pnpm -r --include-workspace-root --filter @sfxcode/mongocamp-server-core --filter @sfxcode/nuxt-mongocamp-server publish --access public && git push --follow-tags",
|
|
68
72
|
"release:next": "npm run lint && npm run test && npm run prepack && changelogen --prerelease=alpha --release --no-commit --no-tag && node scripts/sync-versions.mjs --commit && pnpm -r --include-workspace-root --filter @sfxcode/mongocamp-server-core --filter @sfxcode/nuxt-mongocamp-server publish --access public --tag next && git push --follow-tags",
|
|
69
73
|
"lint": "eslint .",
|
|
@@ -73,12 +77,16 @@
|
|
|
73
77
|
"test:coverage": "vitest run --coverage",
|
|
74
78
|
"test:update": "vitest run --update",
|
|
75
79
|
"test:update:watch": "vitest run --update --watch",
|
|
76
|
-
"api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true",
|
|
80
|
+
"api-codegen": "openapi-generator-cli generate -i ./openapi/docs.yaml -g typescript-fetch -o src/runtime/api --additional-properties=typescriptThreePlus=true,supportsES6=true && node scripts/api-codegen-post.mjs",
|
|
77
81
|
"test:contract": "vitest run --config vitest.contract.config.ts",
|
|
78
|
-
"typecheck:server": "pnpm --filter @sfxcode/mongocamp-server-core typecheck",
|
|
79
82
|
"sync-versions": "node scripts/sync-versions.mjs",
|
|
80
83
|
"docs:dev": "pnpm --filter mongocamp-docs dev",
|
|
81
84
|
"docs:build": "pnpm --filter mongocamp-docs build",
|
|
82
|
-
"docs:preview": "pnpm --filter mongocamp-docs preview"
|
|
85
|
+
"docs:preview": "pnpm --filter mongocamp-docs preview",
|
|
86
|
+
"codegen": "pnpm api-codegen && pnpm --filter @sfxcode/mongocamp-server-core api-types && pnpm --filter @sfxcode/mongocamp-server-core operations",
|
|
87
|
+
"codegen:check": "pnpm codegen && git diff --exit-code -- src/runtime/api packages/server-core/src/generated",
|
|
88
|
+
"typecheck": "vue-tsc --noEmit && vue-tsc -b playground --noEmit && vue-tsc -b docs/tutorial/app --noEmit && pnpm -r typecheck",
|
|
89
|
+
"test:contract:coverage": "vitest run --config vitest.contract.config.ts --coverage",
|
|
90
|
+
"test:e2e": "vitest run --project e2e"
|
|
83
91
|
}
|
|
84
92
|
}
|