Comparing version 1.28.0 to 1.29.0
@@ -10,6 +10,5 @@ import { type MiddlewareFn } from "../composer.js"; | ||
* storage solution, and make it available to you on the context object. Check | ||
* out the | ||
* [documentation](https://grammy.dev/ref/core/session) | ||
* on session middleware to know more, and read the section about sessions on | ||
* the [website](https://grammy.dev/plugins/session). | ||
* out the [documentation](https://grammy.dev/ref/core/session) on session | ||
* middleware to know more, and read the section about sessions on the | ||
* [website](https://grammy.dev/plugins/session). | ||
*/ | ||
@@ -21,8 +20,8 @@ export interface SessionFlavor<S> { | ||
* **WARNING:** You have to make sure that your session data is not | ||
* undefined by _providing an initial value to the session middleware_, or by | ||
* making sure that `ctx.session` is assigned if it is empty! The type | ||
* undefined by _providing an initial value to the session middleware_, or | ||
* by making sure that `ctx.session` is assigned if it is empty! The type | ||
* system does not include `| undefined` because this is really annoying to | ||
* work with. | ||
* | ||
* Accessing `ctx.session` by reading or writing will throw if | ||
* Accessing `ctx.session` by reading or writing will throw if | ||
* `getSessionKey(ctx) === undefined` for the respective context object | ||
@@ -42,5 +41,4 @@ * `ctx`. | ||
* same context object, the cached value will be used. Check out the | ||
* [documentation](https://grammy.dev/ref/core/lazysession) | ||
* on lazy session middleware to know more, and read the section about lazy | ||
* sessions on the | ||
* [documentation](https://grammy.dev/ref/core/lazysession) on lazy session | ||
* middleware to know more, and read the section about lazy sessions on the | ||
* [website](https://grammy.dev/plugins/session#lazy-sessions). | ||
@@ -307,7 +305,7 @@ */ | ||
* | ||
* This storage adapter features expiring sessions. When instantiating this class | ||
* yourself, you can pass a time to live in milliseconds that will be used for | ||
* each session object. If a session for a user expired, the session data will | ||
* be discarded on its first read, and a fresh session object as returned by the | ||
* `initial` option (or undefined) will be put into place. | ||
* This storage adapter features expiring sessions. When instantiating this | ||
* class yourself, you can pass a time to live in milliseconds that will be used | ||
* for each session object. If a session for a user expired, the session data | ||
* will be discarded on its first read, and a fresh session object as returned | ||
* by the `initial` option (or undefined) will be put into place. | ||
*/ | ||
@@ -314,0 +312,0 @@ export declare class MemorySessionStorage<S> implements StorageAdapter<S> { |
@@ -378,7 +378,7 @@ "use strict"; | ||
* | ||
* This storage adapter features expiring sessions. When instantiating this class | ||
* yourself, you can pass a time to live in milliseconds that will be used for | ||
* each session object. If a session for a user expired, the session data will | ||
* be discarded on its first read, and a fresh session object as returned by the | ||
* `initial` option (or undefined) will be put into place. | ||
* This storage adapter features expiring sessions. When instantiating this | ||
* class yourself, you can pass a time to live in milliseconds that will be used | ||
* for each session object. If a session for a user expired, the session data | ||
* will be discarded on its first read, and a fresh session object as returned | ||
* by the `initial` option (or undefined) will be put into place. | ||
*/ | ||
@@ -385,0 +385,0 @@ class MemorySessionStorage { |
@@ -745,2 +745,3 @@ import { type Context } from "./context.js"; | ||
readonly custom_emoji: {}; | ||
readonly paid: {}; | ||
}; | ||
@@ -750,2 +751,3 @@ readonly new_reaction: { | ||
readonly custom_emoji: {}; | ||
readonly paid: {}; | ||
}; | ||
@@ -757,2 +759,3 @@ }; | ||
readonly custom_emoji: {}; | ||
readonly paid: {}; | ||
}; | ||
@@ -759,0 +762,0 @@ }; |
@@ -244,2 +244,3 @@ "use strict"; | ||
custom_emoji: {}, | ||
paid: {}, | ||
}; | ||
@@ -246,0 +247,0 @@ // L2 |
{ | ||
"name": "grammy", | ||
"description": "The Telegram Bot Framework.", | ||
"version": "1.28.0", | ||
"version": "1.29.0", | ||
"author": "KnorpelSenf", | ||
@@ -20,3 +20,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@grammyjs/types": "3.12.0", | ||
"@grammyjs/types": "3.13.0", | ||
"abort-controller": "^3.0.0", | ||
@@ -23,0 +23,0 @@ "debug": "^4.3.4", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1052597
20826
322
+ Added@grammyjs/types@3.13.0(transitive)
- Removed@grammyjs/types@3.12.0(transitive)
Updated@grammyjs/types@3.13.0