Comparing version 0.27.0 to 0.27.1-next.0
@@ -306,2 +306,3 @@ import { __decorate, __metadata } from "tslib"; | ||
if (req) { | ||
remult.context.request = req; | ||
remultStatic.asyncContext.setInInitRequest(true); | ||
@@ -308,0 +309,0 @@ try { |
@@ -6,5 +6,6 @@ export const flags = { | ||
- https://github.com/remult/remult/blob/query-argumets/projects/tests/dbs/test-sql-database.spec.ts#L100-L128 | ||
//p2 - allow preprocess to replace filter values - for example replace $contains on a specific field, with specific other sql - useful for full text search and other scenarios | ||
//y1 - consider sql expression gets a dbnames of it's own (that already has the "tableName" defined correctly) maybe also the filter translator | ||
//y2 - soft-delete-discussion https://discord.com/channels/975754286384418847/1230386433093533698/1230386433093533698 | ||
*/ | ||
//y1 - consider sql expression gets a dbnames of it's own (that already has the "tableName" defined correctly) maybe also the filter translator | ||
//y2 - soft-delete-discussion https://discord.com/channels/975754286384418847/1230386433093533698/1230386433093533698 | ||
//p1 - fix query docs to also explain how it can be used for infinite scroll and pagination. | ||
@@ -11,0 +12,0 @@ //y1 - 'test expression columns without aliases' |
{ | ||
"name": "remult", | ||
"version": "0.27.0", | ||
"version": "0.27.1-next.0", | ||
"description": "A CRUD framework for full-stack TypeScript", | ||
@@ -5,0 +5,0 @@ "homepage": "https://remult.dev", |
@@ -86,3 +86,20 @@ import type { ClassType } from '../classType.js'; | ||
export type GetArguments<T> = T extends (...args: infer FirstArgument) => any ? FirstArgument : never; | ||
/** | ||
* This type represents the context object available through `remult.context` | ||
* It can be used to store custom information that will be available throughout the request lifecycle. | ||
* @example | ||
* remult.context.myCustomData = 'hello' | ||
*/ | ||
export interface RemultContext { | ||
/** When running on the backend as part of a request, will have the request object. | ||
* You can type it to your specific type | ||
* @example | ||
* import type express from 'express' | ||
* declare module 'remult' { | ||
* export interface RemultContext { | ||
* request?: express.Request | ||
* } | ||
* } | ||
* */ | ||
request?: any; | ||
} | ||
@@ -89,0 +106,0 @@ /** |
@@ -9,5 +9,6 @@ "use strict"; | ||
- https://github.com/remult/remult/blob/query-argumets/projects/tests/dbs/test-sql-database.spec.ts#L100-L128 | ||
//p2 - allow preprocess to replace filter values - for example replace $contains on a specific field, with specific other sql - useful for full text search and other scenarios | ||
//y1 - consider sql expression gets a dbnames of it's own (that already has the "tableName" defined correctly) maybe also the filter translator | ||
//y2 - soft-delete-discussion https://discord.com/channels/975754286384418847/1230386433093533698/1230386433093533698 | ||
*/ | ||
//y1 - consider sql expression gets a dbnames of it's own (that already has the "tableName" defined correctly) maybe also the filter translator | ||
//y2 - soft-delete-discussion https://discord.com/channels/975754286384418847/1230386433093533698/1230386433093533698 | ||
//p1 - fix query docs to also explain how it can be used for infinite scroll and pagination. | ||
@@ -14,0 +15,0 @@ //y1 - 'test expression columns without aliases' |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4628711
51838