@platformatic/next 3.26.0 → 3.27.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/capability.js CHANGED
@@ -6,9 +6,9 @@ import {
6
6
  createServerListener,
7
7
  errors,
8
8
  getServerUrl,
9
- importFile,
10
- resolvePackage
9
+ importFile
11
10
  } from '@platformatic/basic'
11
+ import { resolvePackageViaCJS } from '@platformatic/basic/lib/utils.js'
12
12
  import { ChildProcess } from 'node:child_process'
13
13
  import { once } from 'node:events'
14
14
  import { readFile, writeFile } from 'node:fs/promises'
@@ -43,7 +43,7 @@ export class NextCapability extends BaseCapability {
43
43
  // PS by Paolo: Sob.
44
44
  process.env.NEXT_IGNORE_INCORRECT_LOCKFILE = 'true'
45
45
 
46
- this.#next = resolvePath(dirname(resolvePackage(this.root, 'next')), '../..')
46
+ this.#next = resolvePath(dirname(await resolvePackageViaCJS(this.root, 'next')), '../..')
47
47
  const nextPackage = JSON.parse(await readFile(resolvePath(this.#next, 'package.json'), 'utf-8'))
48
48
  this.#nextVersion = parse(nextPackage.version)
49
49
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/next",
3
- "version": "3.26.0",
3
+ "version": "3.27.0",
4
4
  "description": "Platformatic Next.js Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -23,8 +23,8 @@
23
23
  "iovalkey": "^0.3.0",
24
24
  "msgpackr": "^1.11.2",
25
25
  "semver": "^7.6.3",
26
- "@platformatic/basic": "3.26.0",
27
- "@platformatic/foundation": "3.26.0"
26
+ "@platformatic/foundation": "3.27.0",
27
+ "@platformatic/basic": "3.27.0"
28
28
  },
29
29
  "devDependencies": {
30
30
  "@fastify/reply-from": "^12.0.0",
@@ -40,8 +40,8 @@
40
40
  "next": "^16.0.0",
41
41
  "typescript": "^5.5.4",
42
42
  "ws": "^8.18.0",
43
- "@platformatic/gateway": "3.26.0",
44
- "@platformatic/service": "3.26.0"
43
+ "@platformatic/service": "3.27.0",
44
+ "@platformatic/gateway": "3.27.0"
45
45
  },
46
46
  "engines": {
47
47
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/next/3.26.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/next/3.27.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Next.js Config",
5
5
  "type": "object",