@platformatic/remix 3.28.0-alpha.1 → 3.29.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/config.d.ts CHANGED
@@ -499,6 +499,7 @@ export interface PlatformaticRemixConfig {
499
499
  [k: string]: string;
500
500
  };
501
501
  sourceMaps?: boolean;
502
+ nodeModulesSourceMaps?: string[];
502
503
  scheduler?: {
503
504
  enabled?: boolean | string;
504
505
  name: string;
@@ -553,6 +554,7 @@ export interface PlatformaticRemixConfig {
553
554
  };
554
555
  envfile?: string;
555
556
  sourceMaps?: boolean;
557
+ nodeModulesSourceMaps?: string[];
556
558
  packageManager?: "npm" | "pnpm" | "yarn";
557
559
  preload?: string | string[];
558
560
  nodeOptions?: string;
package/lib/capability.js CHANGED
@@ -4,9 +4,9 @@ import {
4
4
  ensureTrailingSlash,
5
5
  errors,
6
6
  getServerUrl,
7
- importFile
7
+ importFile,
8
+ resolvePackageViaCJS
8
9
  } 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'
@@ -124,8 +124,9 @@ export class RemixCapability extends ViteCapability {
124
124
  /* c8 ignore next 3 */
125
125
  if (onInject) {
126
126
  return
127
- } // Since inject might be called from the main thread directly via ITC, let's clean it up
127
+ }
128
128
 
129
+ // Since inject might be called from the main thread directly via ITC, let's clean it up
129
130
  const { statusCode, headers, body, payload, rawPayload } = res
130
131
  return { statusCode, headers, body, payload, rawPayload }
131
132
  }
@@ -161,7 +162,7 @@ export class RemixCapability extends ViteCapability {
161
162
  await super.start({ listen })
162
163
 
163
164
  /* c8 ignore next 3 */
164
- if (!this._getVite().config.plugins.some(p => p.name === 'remix')) {
165
+ if (!this._getApp().config.plugins.some(p => p.name === 'remix')) {
165
166
  this.logger.warn('Could not find Remix plugin in your Vite configuration. Continuing as plain Vite application.')
166
167
  }
167
168
  }
@@ -212,15 +213,6 @@ export class RemixCapability extends ViteCapability {
212
213
  return
213
214
  }
214
215
 
215
- return new Promise((resolve, reject) => {
216
- this.#server.close(error => {
217
- /* c8 ignore next 3 */
218
- if (error) {
219
- return reject(error)
220
- }
221
-
222
- resolve()
223
- })
224
- })
216
+ return this._closeServer(this.#server)
225
217
  }
226
218
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/remix",
3
- "version": "3.28.0-alpha.1",
3
+ "version": "3.29.0",
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.28.0-alpha.1",
24
- "@platformatic/vite": "3.28.0-alpha.1",
25
- "@platformatic/foundation": "3.28.0-alpha.1"
23
+ "@platformatic/basic": "3.29.0",
24
+ "@platformatic/foundation": "3.29.0",
25
+ "@platformatic/vite": "3.29.0"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@remix-run/dev": "^2.16.8",
@@ -39,10 +39,10 @@
39
39
  "react": "^19.1.0",
40
40
  "react-dom": "^19.1.0",
41
41
  "typescript": "^5.5.4",
42
- "vite": "^5.4.2",
42
+ "vite": "^7.0.0",
43
43
  "ws": "^8.18.0",
44
- "@platformatic/gateway": "3.28.0-alpha.1",
45
- "@platformatic/service": "3.28.0-alpha.1"
44
+ "@platformatic/gateway": "3.29.0",
45
+ "@platformatic/service": "3.29.0"
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.28.0-alpha.1.json",
2
+ "$id": "https://schemas.platformatic.dev/@platformatic/remix/3.29.0.json",
3
3
  "$schema": "http://json-schema.org/draft-07/schema#",
4
4
  "title": "Platformatic Remix Config",
5
5
  "type": "object",
@@ -593,6 +593,12 @@
593
593
  "sourceMaps": {
594
594
  "type": "boolean"
595
595
  },
596
+ "nodeModulesSourceMaps": {
597
+ "type": "array",
598
+ "items": {
599
+ "type": "string"
600
+ }
601
+ },
596
602
  "packageManager": {
597
603
  "type": "string",
598
604
  "enum": [
@@ -1839,6 +1845,13 @@
1839
1845
  "type": "boolean",
1840
1846
  "default": false
1841
1847
  },
1848
+ "nodeModulesSourceMaps": {
1849
+ "type": "array",
1850
+ "items": {
1851
+ "type": "string"
1852
+ },
1853
+ "default": []
1854
+ },
1842
1855
  "scheduler": {
1843
1856
  "type": "array",
1844
1857
  "items": {
@@ -2092,6 +2105,12 @@
2092
2105
  "sourceMaps": {
2093
2106
  "type": "boolean"
2094
2107
  },
2108
+ "nodeModulesSourceMaps": {
2109
+ "type": "array",
2110
+ "items": {
2111
+ "type": "string"
2112
+ }
2113
+ },
2095
2114
  "packageManager": {
2096
2115
  "type": "string",
2097
2116
  "enum": [