modelence 0.19.1 → 0.20.0-files.dev.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.
Files changed (44) hide show
  1. package/dist/bin/modelence.js +2 -2
  2. package/dist/bin/modelence.js.map +1 -1
  3. package/dist/chunk-5LP23CUB.js +3 -0
  4. package/dist/chunk-5LP23CUB.js.map +1 -0
  5. package/dist/chunk-A2J5PPAQ.js +29 -0
  6. package/dist/chunk-A2J5PPAQ.js.map +1 -0
  7. package/dist/chunk-GPKIS2JI.js +3 -0
  8. package/dist/chunk-GPKIS2JI.js.map +1 -0
  9. package/dist/chunk-JDYWT45S.js +2 -0
  10. package/dist/chunk-JDYWT45S.js.map +1 -0
  11. package/dist/chunk-TBGXZXAA.js +2 -0
  12. package/dist/chunk-TBGXZXAA.js.map +1 -0
  13. package/dist/chunk-YLLX26A4.js +2 -0
  14. package/dist/chunk-YLLX26A4.js.map +1 -0
  15. package/dist/chunk-YRR32LTF.js +2 -0
  16. package/dist/chunk-YRR32LTF.js.map +1 -0
  17. package/dist/client.d.ts +67 -23
  18. package/dist/client.js +1 -1
  19. package/dist/client.js.map +1 -1
  20. package/dist/collectCss-4YETFI7P.js +2 -0
  21. package/dist/collectCss-4YETFI7P.js.map +1 -0
  22. package/dist/{index-CLpVWWuj.d.ts → index-CgNFVSg6.d.ts} +1 -1
  23. package/dist/index.d.ts +2 -2
  24. package/dist/index.js +1 -1
  25. package/dist/{package-FOVTOR5M.js → package-OLG24DKG.js} +2 -2
  26. package/dist/{package-FOVTOR5M.js.map → package-OLG24DKG.js.map} +1 -1
  27. package/dist/render-A7HWHWAE.js +2 -0
  28. package/dist/render-A7HWHWAE.js.map +1 -0
  29. package/dist/renderApp-QYMNQ3KS.js +2 -0
  30. package/dist/renderApp-QYMNQ3KS.js.map +1 -0
  31. package/dist/server-OYDAIDR6.js +2 -0
  32. package/dist/server-OYDAIDR6.js.map +1 -0
  33. package/dist/server.d.ts +37 -9
  34. package/dist/server.js +1 -20
  35. package/dist/server.js.map +1 -1
  36. package/dist/transport-BBEHTFCG.js +2 -0
  37. package/dist/transport-BBEHTFCG.js.map +1 -0
  38. package/dist/{types-CzGfkwti.d.ts → types-B_R3eHmq.d.ts} +6 -6
  39. package/dist/{types-JMIT4IDG.d.ts → types-_BTBqn8b.d.ts} +2 -2
  40. package/dist/types.d.ts +3 -3
  41. package/package.json +3 -1
  42. package/dist/chunk-VBRGC3XM.js +0 -3
  43. package/dist/chunk-VBRGC3XM.js.map +0 -1
  44. package/dist/types-DLDzAym7.d.ts +0 -8
@@ -0,0 +1,2 @@
1
+ import {c,a}from'./chunk-JDYWT45S.js';import'./chunk-GPKIS2JI.js';import'./chunk-7LPSX5A6.js';import {s,r}from'./chunk-YLLX26A4.js';import'./chunk-5M6FUMUK.js';import'./chunk-DO5TZLF5.js';function d(){return s(async(t,r$1)=>{let o=c();return o?a(t,r$1,o.callContext):r(t,r$1)})}export{d as installSsrCallMethodTransport};//# sourceMappingURL=transport-BBEHTFCG.js.map
2
+ //# sourceMappingURL=transport-BBEHTFCG.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/ssr/transport.ts"],"names":["installSsrCallMethodTransport","setCallMethodTransport","methodName","args","ssrCtx","getSsrContext","callInProcessMethod","defaultCallMethodTransport"],"mappings":"4LAcO,SAASA,CAAAA,EAA4C,CAC1D,OAAOC,CAAAA,CAAuB,MAAUC,EAAoBC,GAAAA,GAAqB,CAC/E,IAAMC,CAAAA,CAASC,CAAAA,EAAc,CAC7B,OAAKD,CAAAA,CAIEE,CAAAA,CAAuBJ,CAAAA,CAAYC,GAAAA,CAAMC,CAAAA,CAAO,WAAW,CAAA,CAHzDG,CAAAA,CAA8BL,CAAAA,CAAYC,GAAI,CAIzD,CAAC,CACH","file":"transport-BBEHTFCG.js","sourcesContent":["import {\n setCallMethodTransport,\n defaultCallMethodTransport,\n type MethodArgs,\n} from '../client/method';\nimport { callInProcessMethod } from './callInProcess';\nimport { getSsrContext } from './context';\n\n/**\n * Routes `callMethod` through `runMethod` in-process during an active SSR\n * render. Outside a render (e.g. server-side `callMethod` from jobs or other\n * non-render code) there is no request context, so it falls back to the\n * default HTTP transport — installing SSR must not break those call sites.\n */\nexport function installSsrCallMethodTransport(): () => void {\n return setCallMethodTransport(async <T>(methodName: string, args: MethodArgs) => {\n const ssrCtx = getSsrContext();\n if (!ssrCtx) {\n return defaultCallMethodTransport<T>(methodName, args);\n }\n\n return callInProcessMethod<T>(methodName, args, ssrCtx.callContext);\n });\n}\n"]}
@@ -189,10 +189,10 @@ type Context = {
189
189
  roles: string[];
190
190
  clientInfo: ClientInfo;
191
191
  connectionInfo: ConnectionInfo;
192
- };
193
- type HttpContext = Context & {
194
- req: Request;
195
- res: Response;
192
+ /** Express request. `null` for in-process invocations (e.g. background jobs, SSR). */
193
+ req: Request | null;
194
+ /** Express response. `null` for in-process invocations. Used by auth handlers to set/clear cookies. */
195
+ res: Response | null;
196
196
  };
197
197
  type Args = Record<string, unknown>;
198
198
  type UpdateProfileProps = {
@@ -205,7 +205,7 @@ type SignupProps = UpdateProfileProps & {
205
205
  email: string;
206
206
  password: string;
207
207
  };
208
- type Handler<T = unknown> = (args: Args, context: Context | HttpContext) => Promise<T> | T;
208
+ type Handler<T = unknown> = (args: Args, context: Context) => Promise<T> | T;
209
209
  type AnyMethodShape = ((...args: any[]) => any) | {
210
210
  handler: (...args: any[]) => any;
211
211
  };
@@ -285,4 +285,4 @@ interface WebsocketClientProvider {
285
285
  }): void;
286
286
  }
287
287
 
288
- export { type AnyMethodShape as A, type ConfigSchema as C, type DefaultRoles as D, type Handler as H, type MethodDefinition as M, type OAuthProvider as O, type Permission as P, type RoleDefinition as R, ServerChannel as S, type UpdateProfileProps as U, type ValueType as V, type WebsocketClientProvider as W, type WebsocketServerProvider as a, type ClientInfo as b, type ConfigKey as c, type ConfigParams as d, type ConfigType as e, ClientChannel as f, type SignupProps as g, type AuthSuccessProps as h, type AuthErrorProps as i, type ConnectionInfo as j, type User as k, type OAuthErrorInfo as l, type AppConfig as m, type Session as n, type UserInfo as o, type Role as p, type Context as q, type Args as r, type AuthProvider as s, type Configs as t, type HttpContext as u, type Method as v, type MethodType as w, SUPPORTED_OAUTH_PROVIDERS as x, type UserEmail as y };
288
+ export { type AnyMethodShape as A, type ConfigSchema as C, type DefaultRoles as D, type Handler as H, type MethodDefinition as M, type OAuthProvider as O, type Permission as P, type RoleDefinition as R, ServerChannel as S, type UpdateProfileProps as U, type ValueType as V, type WebsocketClientProvider as W, type WebsocketServerProvider as a, type ClientInfo as b, type ConfigKey as c, type ConfigParams as d, type ConfigType as e, ClientChannel as f, type SignupProps as g, type AuthSuccessProps as h, type AuthErrorProps as i, type ConnectionInfo as j, type User as k, type OAuthErrorInfo as l, type Session as m, type AppConfig as n, type UserInfo as o, type Role as p, type Context as q, type Args as r, type AuthProvider as s, type Configs as t, type Method as u, type MethodType as v, SUPPORTED_OAUTH_PROVIDERS as w, type UserEmail as x };
@@ -1,5 +1,5 @@
1
- import './index-CLpVWWuj.js';
2
- import { q as Context } from './types-CzGfkwti.js';
1
+ import './index-CgNFVSg6.js';
2
+ import { q as Context } from './types-B_R3eHmq.js';
3
3
  import * as mongodb from 'mongodb';
4
4
  import { WithId, IndexDescription, SearchIndexDescription, MongoClient, Collection, FilterOperators, Document, FindOptions, ObjectId, SortDirection, OptionalUnlessRequiredId, ClientSession, InsertOneResult, InsertManyResult, UpdateFilter, UpdateResult, DeleteResult, FindOneAndUpdateOptions, FindOneAndDeleteOptions, WithoutId, FindOneAndReplaceOptions, ReplaceOptions, DistinctOptions, ChangeStreamOptions, ChangeStream, AggregateOptions, AggregationCursor, AnyBulkWriteOperation, BulkWriteResult } from 'mongodb';
5
5
  import { z, ZodNumber, ZodArray } from 'zod';
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
- export { A as AppServer, a as AppServerInitOptions, E as ExpressMiddleware, M as ModelenceConfig } from './index-CLpVWWuj.js';
2
- export { A as AnyMethodShape, m as AppConfig, r as Args, i as AuthErrorProps, s as AuthProvider, h as AuthSuccessProps, b as ClientInfo, c as ConfigKey, d as ConfigParams, C as ConfigSchema, e as ConfigType, t as Configs, j as ConnectionInfo, q as Context, D as DefaultRoles, H as Handler, u as HttpContext, v as Method, M as MethodDefinition, w as MethodType, l as OAuthErrorInfo, O as OAuthProvider, P as Permission, p as Role, R as RoleDefinition, x as SUPPORTED_OAUTH_PROVIDERS, n as Session, g as SignupProps, U as UpdateProfileProps, k as User, y as UserEmail, o as UserInfo, V as ValueType, W as WebsocketClientProvider, a as WebsocketServerProvider } from './types-CzGfkwti.js';
3
- export { B as BodyConfig, g as CronJob, C as CronJobInputParams, h as CronJobMetadata, i as EmailAttachment, c as EmailPayload, E as EmailProvider, j as ExpressHandler, H as HttpMethod, I as InferDocumentType, M as ModelSchema, a as RateLimitRule, b as RateLimitType, R as RouteDefinition, d as RouteHandler, k as RouteHandlers, e as RouteParams, f as RouteResponse, s as schema } from './types-JMIT4IDG.js';
1
+ export { A as AppServer, a as AppServerInitOptions, E as ExpressMiddleware, M as ModelenceConfig } from './index-CgNFVSg6.js';
2
+ export { A as AnyMethodShape, n as AppConfig, r as Args, i as AuthErrorProps, s as AuthProvider, h as AuthSuccessProps, b as ClientInfo, c as ConfigKey, d as ConfigParams, C as ConfigSchema, e as ConfigType, t as Configs, j as ConnectionInfo, q as Context, D as DefaultRoles, H as Handler, u as Method, M as MethodDefinition, v as MethodType, l as OAuthErrorInfo, O as OAuthProvider, P as Permission, p as Role, R as RoleDefinition, w as SUPPORTED_OAUTH_PROVIDERS, m as Session, g as SignupProps, U as UpdateProfileProps, k as User, x as UserEmail, o as UserInfo, V as ValueType, W as WebsocketClientProvider, a as WebsocketServerProvider } from './types-B_R3eHmq.js';
3
+ export { B as BodyConfig, g as CronJob, C as CronJobInputParams, h as CronJobMetadata, i as EmailAttachment, c as EmailPayload, E as EmailProvider, j as ExpressHandler, H as HttpMethod, I as InferDocumentType, M as ModelSchema, a as RateLimitRule, b as RateLimitType, R as RouteDefinition, d as RouteHandler, k as RouteHandlers, e as RouteParams, f as RouteResponse, s as schema } from './types-_BTBqn8b.js';
4
4
  import 'express';
5
5
  import 'http';
6
6
  import 'mongodb';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "modelence",
4
- "version": "0.19.1",
4
+ "version": "0.20.0-files.dev.0",
5
5
  "description": "The Node.js Framework for Real-Time MongoDB Apps",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/global.d.ts",
@@ -52,6 +52,7 @@
52
52
  },
53
53
  "homepage": "https://modelence.com",
54
54
  "devDependencies": {
55
+ "@tanstack/react-query": "^5.100.7",
55
56
  "@types/archiver": "^6.0.3",
56
57
  "@types/bcrypt": "^6.0.0",
57
58
  "@types/cookie-parser": "^1.4.9",
@@ -101,6 +102,7 @@
101
102
  "zustand": "^5.0.2"
102
103
  },
103
104
  "peerDependencies": {
105
+ "@tanstack/react-query": ">=5.0.0",
104
106
  "react": ">=18.0.0",
105
107
  "react-dom": ">=18.0.0"
106
108
  }
@@ -1,3 +0,0 @@
1
- var s="module",i="modelence",r="0.19.1",o="The Node.js Framework for Real-Time MongoDB Apps",n="dist/index.js",c="dist/global.d.ts",p={".":"./dist/index.js","./client":"./dist/client.js","./server":"./dist/server.js","./telemetry":"./dist/telemetry.js","./mongodb":"./dist/mongo.js","./types":{types:"./dist/types.d.ts",default:"./dist/types.js"}},d=["dist","dist/bin"],a={modelence:"./dist/bin/modelence.js"},l={build:"tsup",dev:"tsup --watch",format:'prettier --write "src/**/*.{ts,tsx,js,jsx,json,css,md}"',"format:check":'prettier --check "src/**/*.{ts,tsx,js,jsx,json,css,md}"',lint:"eslint src --ext .ts,.tsx --fix","lint:check":"eslint src --ext .ts,.tsx",prepublishOnly:"npm run build",bench:"tsx src/bench/index.ts",test:"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage",postversion:"git push && git push --tags",prepare:"cd ../.. && git config core.hooksPath .husky"},m={type:"git",url:"git+https://github.com/modelence/modelence.git"},g="Modelence",y="SEE LICENSE IN LICENSE",h={url:"https://github.com/modelence/modelence/issues"},u="https://modelence.com",v={"@types/archiver":"^6.0.3","@types/bcrypt":"^6.0.0","@types/cookie-parser":"^1.4.9","@types/express":"^5.0.0","@types/fs-extra":"^11.0.4","@types/node":"^22.5.1","@types/react":"^19.0.0","@types/react-dom":"^19.0.1","@types/socket.io":"^3.0.1","@typescript-eslint/eslint-plugin":"^8.17.0","@typescript-eslint/parser":"^8.17.0",eslint:"^9.37.0",husky:"^9.1.7","lint-staged":"^16.2.7",prettier:"^3.6.2",react:"^19.0.0","react-dom":"^19.0.0","ts-node":"^10.9.2",vitest:"^2.1.8","@vitest/coverage-v8":"^2.1.8","vite-tsconfig-paths":"^5.1.4"},x={"@socket.io/mongo-adapter":"^0.4.0","@vitejs/plugin-react":"^4.3.4",archiver:"^7.0.1",bcrypt:"^6.0.0",commander:"^12.0.0","cookie-parser":"^1.4.7",dotenv:"^16.4.5","elastic-apm-node":"^4.15.0",express:"^4.21.0","fs-extra":"^11.2.0",jiti:"^2.4.2",mongodb:"^6.8.1",open:"^10.1.0","socket.io":"^4.8.1","socket.io-client":"^4.8.1",tsup:"^8.3.6",tsx:"^4.19.3",typescript:"^5.7.2",vite:"^6.0.3","vite-plugin-eslint":"^1.8.1",winston:"^3.15.0","winston-elasticsearch":"^0.19.0",zod:"^3.23.8",zustand:"^5.0.2"},j={react:">=18.0.0","react-dom":">=18.0.0"},b={type:s,name:i,version:r,description:o,main:n,types:c,exports:p,files:d,bin:a,scripts:l,"lint-staged":{"src/**/*.{ts,tsx,js,jsx,json,css,md}":"prettier --write"},repository:m,author:g,license:y,bugs:h,homepage:u,devDependencies:v,dependencies:x,peerDependencies:j};
2
- export{s as a,i as b,r as c,o as d,n as e,c as f,p as g,d as h,a as i,l as j,m as k,g as l,y as m,h as n,u as o,v as p,x as q,j as r,b as s};//# sourceMappingURL=chunk-VBRGC3XM.js.map
3
- //# sourceMappingURL=chunk-VBRGC3XM.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../package.json"],"names":["type","name","version","description","main","types","exports","files","bin","scripts","repository","author","license","bugs","homepage","devDependencies","dependencies","peerDependencies","package_default"],"mappings":"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","file":"chunk-VBRGC3XM.js","sourcesContent":["{\n \"type\": \"module\",\n \"name\": \"modelence\",\n \"version\": \"0.19.1\",\n \"description\": \"The Node.js Framework for Real-Time MongoDB Apps\",\n \"main\": \"dist/index.js\",\n \"types\": \"dist/global.d.ts\",\n \"exports\": {\n \".\": \"./dist/index.js\",\n \"./client\": \"./dist/client.js\",\n \"./server\": \"./dist/server.js\",\n \"./telemetry\": \"./dist/telemetry.js\",\n \"./mongodb\": \"./dist/mongo.js\",\n \"./types\": {\n \"types\": \"./dist/types.d.ts\",\n \"default\": \"./dist/types.js\"\n }\n },\n \"files\": [\n \"dist\",\n \"dist/bin\"\n ],\n \"bin\": {\n \"modelence\": \"./dist/bin/modelence.js\"\n },\n \"scripts\": {\n \"build\": \"tsup\",\n \"dev\": \"tsup --watch\",\n \"format\": \"prettier --write \\\"src/**/*.{ts,tsx,js,jsx,json,css,md}\\\"\",\n \"format:check\": \"prettier --check \\\"src/**/*.{ts,tsx,js,jsx,json,css,md}\\\"\",\n \"lint\": \"eslint src --ext .ts,.tsx --fix\",\n \"lint:check\": \"eslint src --ext .ts,.tsx\",\n \"prepublishOnly\": \"npm run build\",\n \"bench\": \"tsx src/bench/index.ts\",\n \"test\": \"vitest run\",\n \"test:watch\": \"vitest\",\n \"test:coverage\": \"vitest run --coverage\",\n \"postversion\": \"git push && git push --tags\",\n \"prepare\": \"cd ../.. && git config core.hooksPath .husky\"\n },\n \"lint-staged\": {\n \"src/**/*.{ts,tsx,js,jsx,json,css,md}\": \"prettier --write\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"git+https://github.com/modelence/modelence.git\"\n },\n \"author\": \"Modelence\",\n \"license\": \"SEE LICENSE IN LICENSE\",\n \"bugs\": {\n \"url\": \"https://github.com/modelence/modelence/issues\"\n },\n \"homepage\": \"https://modelence.com\",\n \"devDependencies\": {\n \"@types/archiver\": \"^6.0.3\",\n \"@types/bcrypt\": \"^6.0.0\",\n \"@types/cookie-parser\": \"^1.4.9\",\n \"@types/express\": \"^5.0.0\",\n \"@types/fs-extra\": \"^11.0.4\",\n \"@types/node\": \"^22.5.1\",\n \"@types/react\": \"^19.0.0\",\n \"@types/react-dom\": \"^19.0.1\",\n \"@types/socket.io\": \"^3.0.1\",\n \"@typescript-eslint/eslint-plugin\": \"^8.17.0\",\n \"@typescript-eslint/parser\": \"^8.17.0\",\n \"eslint\": \"^9.37.0\",\n \"husky\": \"^9.1.7\",\n \"lint-staged\": \"^16.2.7\",\n \"prettier\": \"^3.6.2\",\n \"react\": \"^19.0.0\",\n \"react-dom\": \"^19.0.0\",\n \"ts-node\": \"^10.9.2\",\n \"vitest\": \"^2.1.8\",\n \"@vitest/coverage-v8\": \"^2.1.8\",\n \"vite-tsconfig-paths\": \"^5.1.4\"\n },\n \"dependencies\": {\n \"@socket.io/mongo-adapter\": \"^0.4.0\",\n \"@vitejs/plugin-react\": \"^4.3.4\",\n \"archiver\": \"^7.0.1\",\n \"bcrypt\": \"^6.0.0\",\n \"commander\": \"^12.0.0\",\n \"cookie-parser\": \"^1.4.7\",\n \"dotenv\": \"^16.4.5\",\n \"elastic-apm-node\": \"^4.15.0\",\n \"express\": \"^4.21.0\",\n \"fs-extra\": \"^11.2.0\",\n \"jiti\": \"^2.4.2\",\n \"mongodb\": \"^6.8.1\",\n \"open\": \"^10.1.0\",\n \"socket.io\": \"^4.8.1\",\n \"socket.io-client\": \"^4.8.1\",\n \"tsup\": \"^8.3.6\",\n \"tsx\": \"^4.19.3\",\n \"typescript\": \"^5.7.2\",\n \"vite\": \"^6.0.3\",\n \"vite-plugin-eslint\": \"^1.8.1\",\n \"winston\": \"^3.15.0\",\n \"winston-elasticsearch\": \"^0.19.0\",\n \"zod\": \"^3.23.8\",\n \"zustand\": \"^5.0.2\"\n },\n \"peerDependencies\": {\n \"react\": \">=18.0.0\",\n \"react-dom\": \">=18.0.0\"\n }\n}\n"]}
@@ -1,8 +0,0 @@
1
- type FileVisibility = 'public' | 'private';
2
- type GetUploadUrlResult = {
3
- url: string;
4
- fields: Record<string, string>;
5
- filePath: string;
6
- };
7
-
8
- export type { FileVisibility as F, GetUploadUrlResult as G };