@platformatic/next 2.6.1 → 2.8.0-alpha.1

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 (3) hide show
  1. package/index.js +12 -4
  2. package/package.json +6 -6
  3. package/schema.json +1 -1
package/index.js CHANGED
@@ -131,12 +131,16 @@ export class NextStackable extends BaseStackable {
131
131
  this.childManager = new ChildManager({
132
132
  loader: loaderUrl,
133
133
  context: {
134
- id: this.id,
134
+ serviceId: this.serviceId,
135
+ workerId: this.workerId,
135
136
  // Always use URL to avoid serialization problem in Windows
136
137
  root: pathToFileURL(this.root).toString(),
137
138
  basePath: this.#basePath,
138
139
  logLevel: this.logger.level,
139
- port: false
140
+ port: false,
141
+ isEntrypoint: this.isEntrypoint,
142
+ runtimeBasePath: this.runtimeConfig.basePath,
143
+ wantsAbsoluteUrls: true
140
144
  }
141
145
  })
142
146
 
@@ -178,11 +182,15 @@ export class NextStackable extends BaseStackable {
178
182
  this.childManager = new ChildManager({
179
183
  loader: loaderUrl,
180
184
  context: {
181
- id: this.id,
185
+ serviceId: this.serviceId,
186
+ workerId: this.workerId,
182
187
  // Always use URL to avoid serialization problem in Windows
183
188
  root: pathToFileURL(this.root).toString(),
184
189
  basePath: this.#basePath,
185
- logLevel: this.logger.level
190
+ logLevel: this.logger.level,
191
+ isEntrypoint: this.isEntrypoint,
192
+ runtimeBasePath: this.runtimeConfig.basePath,
193
+ wantsAbsoluteUrls: true,
186
194
  }
187
195
  })
188
196
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "2.6.1",
3
+ "version": "2.8.0-alpha.1",
4
4
  "description": "Platformatic Next.js Stackable",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -20,9 +20,9 @@
20
20
  "@babel/traverse": "^7.25.3",
21
21
  "@babel/types": "^7.25.2",
22
22
  "semver": "^7.6.3",
23
- "@platformatic/basic": "2.6.1",
24
- "@platformatic/config": "2.6.1",
25
- "@platformatic/utils": "2.6.1"
23
+ "@platformatic/basic": "2.8.0-alpha.1",
24
+ "@platformatic/config": "2.8.0-alpha.1",
25
+ "@platformatic/utils": "2.8.0-alpha.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@fastify/reply-from": "^11.0.0",
@@ -36,8 +36,8 @@
36
36
  "react-dom": "^18.3.1",
37
37
  "typescript": "^5.5.4",
38
38
  "ws": "^8.18.0",
39
- "@platformatic/composer": "2.6.1",
40
- "@platformatic/service": "2.6.1"
39
+ "@platformatic/composer": "2.8.0-alpha.1",
40
+ "@platformatic/service": "2.8.0-alpha.1"
41
41
  },
42
42
  "scripts": {
43
43
  "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.6.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/2.8.0-alpha.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Next.js Stackable",
5
5
  "type": "object",