@platformatic/next 2.52.0 → 2.52.1-alpha.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/lib/caching/valkey.js +4 -1
- package/lib/loader.js +2 -0
- package/package.json +6 -6
- package/schema.json +1 -1
package/lib/caching/valkey.js
CHANGED
|
@@ -145,7 +145,10 @@ export class CacheHandler {
|
|
|
145
145
|
return value
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
async set (cacheKey, value,
|
|
148
|
+
async set (cacheKey, value, ctx, isRedisKey) {
|
|
149
|
+
const tags = ctx.tags
|
|
150
|
+
const revalidate = ctx.revalidate ?? ctx.cacheControl?.revalidate ?? value.revalidate ?? 0
|
|
151
|
+
|
|
149
152
|
this.#logger.trace({ key: cacheKey, value, tags, revalidate }, 'set')
|
|
150
153
|
|
|
151
154
|
const key = this.#standalone || isRedisKey ? cacheKey : this.#keyFor(cacheKey, sections.values)
|
package/lib/loader.js
CHANGED
|
@@ -63,6 +63,8 @@ function createEvaluatorWrapperFunction (original) {
|
|
|
63
63
|
[restElement(identifier('args'))],
|
|
64
64
|
blockStatement(
|
|
65
65
|
[
|
|
66
|
+
// This is to avoid https://github.com/vercel/next.js/issues/76981
|
|
67
|
+
parseSingleExpression("Headers.prototype[Symbol.for('nodejs.util.inspect.custom')] = undefined"),
|
|
66
68
|
variableDeclaration('let', [variableDeclarator(identifier(originalId), original)]),
|
|
67
69
|
parseSingleExpression(
|
|
68
70
|
`if (typeof ${originalId} === 'function') { ${originalId} = await ${originalId}(...args) }`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/next",
|
|
3
|
-
"version": "2.52.0",
|
|
3
|
+
"version": "2.52.1-alpha.0",
|
|
4
4
|
"description": "Platformatic Next.js Stackable",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"iovalkey": "^0.3.0",
|
|
24
24
|
"msgpackr": "^1.11.2",
|
|
25
25
|
"semver": "^7.6.3",
|
|
26
|
-
"@platformatic/
|
|
27
|
-
"@platformatic/utils": "2.52.0",
|
|
28
|
-
"@platformatic/
|
|
26
|
+
"@platformatic/config": "2.52.1-alpha.0",
|
|
27
|
+
"@platformatic/utils": "2.52.1-alpha.0",
|
|
28
|
+
"@platformatic/basic": "2.52.1-alpha.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@fastify/reply-from": "^12.0.0",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"react-dom": "^18.3.1",
|
|
42
42
|
"typescript": "^5.5.4",
|
|
43
43
|
"ws": "^8.18.0",
|
|
44
|
-
"@platformatic/
|
|
45
|
-
"@platformatic/
|
|
44
|
+
"@platformatic/composer": "2.52.1-alpha.0",
|
|
45
|
+
"@platformatic/service": "2.52.1-alpha.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"test": "npm run lint && borp --concurrency=1 --no-timeout",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/next/2.52.0.json",
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/next/2.52.1-alpha.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Next.js Stackable",
|
|
5
5
|
"type": "object",
|