@platformatic/remix 3.26.0 → 3.28.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.
package/lib/capability.js CHANGED
@@ -4,9 +4,9 @@ import {
4
4
  ensureTrailingSlash,
5
5
  errors,
6
6
  getServerUrl,
7
- importFile,
8
- resolvePackage
7
+ importFile
9
8
  } from '@platformatic/basic'
9
+ import { resolvePackageViaCJS } from '@platformatic/basic/lib/utils.js'
10
10
  import { ViteCapability } from '@platformatic/vite'
11
11
  import { createRequestHandler } from '@remix-run/express'
12
12
  import express from 'express'
@@ -36,7 +36,7 @@ export class RemixCapability extends ViteCapability {
36
36
  await super.init()
37
37
 
38
38
  if (!this.isProduction) {
39
- this.#remix = resolve(dirname(resolvePackage(this.root, '@remix-run/dev')), '..')
39
+ this.#remix = resolve(dirname(await resolvePackageViaCJS(this.root, '@remix-run/dev')), '..')
40
40
  const remixPackage = JSON.parse(await readFile(resolve(this.#remix, 'package.json'), 'utf-8'))
41
41
 
42
42
  if (!satisfies(remixPackage.version, supportedVersions)) {
@@ -158,15 +158,12 @@ export class RemixCapability extends ViteCapability {
158
158
  await preloadVite()
159
159
  }
160
160
 
161
- await super._start({ listen })
162
161
  await super.start({ listen })
163
162
 
164
163
  /* c8 ignore next 3 */
165
164
  if (!this._getVite().config.plugins.some(p => p.name === 'remix')) {
166
165
  this.logger.warn('Could not find Remix plugin in your Vite configuration. Continuing as plain Vite application.')
167
166
  }
168
-
169
- await this._collectMetrics()
170
167
  }
171
168
 
172
169
  async #startProduction (listen) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/remix",
3
- "version": "3.26.0",
3
+ "version": "3.28.0-alpha.1",
4
4
  "description": "Platformatic Remix Capability",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -20,9 +20,9 @@
20
20
  "light-my-request": "^6.0.0",
21
21
  "pino-http": "^10.2.0",
22
22
  "semver": "^7.6.3",
23
- "@platformatic/basic": "3.26.0",
24
- "@platformatic/vite": "3.26.0",
25
- "@platformatic/foundation": "3.26.0"
23
+ "@platformatic/basic": "3.28.0-alpha.1",
24
+ "@platformatic/vite": "3.28.0-alpha.1",
25
+ "@platformatic/foundation": "3.28.0-alpha.1"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@remix-run/dev": "^2.16.8",
@@ -41,8 +41,8 @@
41
41
  "typescript": "^5.5.4",
42
42
  "vite": "^5.4.2",
43
43
  "ws": "^8.18.0",
44
- "@platformatic/gateway": "3.26.0",
45
- "@platformatic/service": "3.26.0"
44
+ "@platformatic/gateway": "3.28.0-alpha.1",
45
+ "@platformatic/service": "3.28.0-alpha.1"
46
46
  },
47
47
  "engines": {
48
48
  "node": ">=22.19.0"
package/schema.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "$id": "https://schemas.platformatic.dev/@platformatic/remix/3.26.0.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/remix/3.28.0-alpha.1.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Remix Config",
5
5
  "type": "object",