Skip to content

Commit a5ffc6f

Browse files
committed
version 3.3.0
1 parent 0d971b2 commit a5ffc6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+1120
-132
lines changed

README.md

Lines changed: 38 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,29 @@
1111
![npm](https://img.shields.io/npm/dw/remix-development-tools?style=plastic)
1212
![GitHub top language](https://img.shields.io/github/languages/top/Code-Forge-Net/Remix-Dev-Tools?style=plastic)
1313

14-
Remix Development Tools is an open-source package designed to enhance your development workflow when working with Remix, a full-stack JavaScript framework for building web applications. This package provides a user-friendly interface consisting of three tabs, **Active Page**, **Terminal**, **Settings** and **Routes**, along with a side tab called **Timeline**. With Remix Development Tools, you can efficiently monitor and manage various aspects of your Remix projects, including page information, URL parameters, server responses, loader data, routes, and more.
14+
Remix Development Tools is an open-source package designed to enhance your development workflow when working with Remix, a full-stack JavaScript framework for building web applications. This package provides a user-friendly interface consisting of three tabs, **Active Page**, **Terminal**, **Settings**, **Errors** and **Routes**, along with a side tab called **Timeline**. With Remix Development Tools, you can efficiently monitor and manage various aspects of your Remix projects, including page information, URL parameters, server responses, loader data, routes, and more. You can
15+
also track down hydration issues with the **Errors** tab and view your routes in a tree/list view with the **Routes** tab.
1516

1617
## How it looks
1718
### Server logger
1819
![server logger](./assets/logs.png)
1920
### Routes Tab (List view)
2021
![routes](./assets/routes.gif)
21-
2222
### Routes Tab (Tree view)
2323
![routes](./assets/tree-view.png)
24+
### Errors Tab
25+
![routes](./assets/errors-tab.gif)
2426
### Timeline
2527
![timeline](./assets/timeline.gif)
2628
### Route boundaries & Active page panel
2729
![route boundaries](./assets/boundaries.png)
30+
31+
2832
## What's new?
33+
## v3.3.0
34+
- HMR speed-up > HMR is now a lot faster due to the fact the package doesn't use lucide-react which was slowing down HMR on certain machines
35+
- Errors tab > you can now see the HTML nesting errors that you might have on your page and open the files directly in VS code. This
36+
can help you debug hydration issues a lot faster!
2937

3038
## v3.2.1
3139

@@ -116,6 +124,10 @@ The **Routes** tab enables you to manage and explore the routes within your Remi
116124

117125
The **Timeline** side tab provides a timeline view of events occurring during the development process. This tab helps you track the sequence of actions and events, providing valuable insights into the execution flow of your application.
118126

127+
### Errors Tab
128+
129+
The **Errors** tab allows you to track down hydration issues in your application. It shows you the HTML nesting errors that you might have on your page and allows you to open the files directly in VS code. This can help you debug hydration issues a lot faster!
130+
119131
### Settings tab
120132

121133
The **Settings** tab allows you to tweak your Remix Development Tools to your needs. Allows you to tweak around the height of the dev tools,
@@ -231,6 +243,10 @@ If you're using a CJS custom server you can replace the following lines:
231243

232244
### CJS remix server setup (remix run server started by remix dev)
233245

246+
> [!NOTE]
247+
> This is only needed when you're not running a custom server and you're using the remix dev server
248+
249+
234250
Just add the following command to your package.json:
235251
```diff
236252
- "dev": "remix dev",
@@ -239,6 +255,9 @@ Just add the following command to your package.json:
239255

240256
### ESM remix server setup (remix run server started by remix dev)
241257

258+
> [!NOTE]
259+
> This is only needed when you're not running a custom server and you're using the remix dev server
260+
242261
Just add the following command to your package.json:
243262
```diff
244263
- "dev": "remix dev",
@@ -411,9 +430,25 @@ The migration should be really simple. These are the following things you need t
411430
```
412431
4. You're good to go! (You can also add the server logger on top of that if you want)
413432

414-
433+
415434
## Troubleshooting
416435

436+
### Cloudflare
437+
438+
I am aware of the fact that Remix Development Tools doesn't work with Cloudflare. I am working on a fix for this issue.
439+
440+
### Types missing from "remix-dev-tools/server" import
441+
442+
If your `moduleResolution` is set to `Node` in your `tsconfig.json` file you may encounter missing types when importing from `remix-dev-tools/server`. To fix this issue you need to add the following to your `tsconfig.json` file:
443+
444+
```json
445+
{
446+
"compilerOptions": {
447+
"moduleResolution": "Bundler"
448+
}
449+
}
450+
```
451+
417452
### [ lower version than V3 only ] Dynamic imports are only supported when the "--module" flag is set to 'es2020', 'es2022', 'esnext', 'commonjs', 'amd', 'system', 'umd', 'node16', or 'nodenext'.ts(1323)
418453

419454
To fix this issue you need to add the following to your `tsconfig.json` file:

assets/errors-tab.gif

1.12 MB
Loading

package-lock.json

Lines changed: 121 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
"name": "remix-development-tools",
33
"description": "Remix development tools - a set of tools for developing/debugging Remix.run apps",
44
"author": "Alem Tuzlak",
5-
"version": "3.2.2",
5+
"version": "3.3.0",
66
"license": "MIT",
77
"keywords": [
88
"remix",
99
"remix-dev-tools",
1010
"remix-development-tools",
11+
"hydration-debugger",
1112
"remix-debugger",
1213
"remix-debugger-ui",
1314
"remix-debugger-ui-react",
@@ -98,9 +99,11 @@
9899
"prepare": "husky install",
99100
"tsc": "tsc --noEmit",
100101
"validate": "npm run lint && npm run tsc && npm run test",
101-
"run:scripts": "npx ts-node --esm --transpile-only -- $npm_config_script_path",
102102
"tw": "npx tailwindcss -i ./src/input.css -o ./src/output.css --minify",
103-
"move": "run-s tw & npm run run:scripts --script_path=scripts/moveStyles.ts"
103+
"move": "run-s tw & npm run run:scripts --script_path=scripts/moveStyles.ts",
104+
"run:scripts": "npx ts-node-esm --require tsconfig-paths/register --transpile-only",
105+
"script": "npm run run:scripts scripts/setup.ts",
106+
"icons": "npm run run:scripts scripts/icons.ts"
104107
},
105108
"workspaces": [
106109
".",
@@ -152,6 +155,7 @@
152155
"postcss": "^8.4.29",
153156
"prettier": "^3.0.0",
154157
"prettier-plugin-tailwindcss": "^0.4.1",
158+
"prompt": "^1.3.0",
155159
"react-dom": "^18.2.0",
156160
"react-hook-form": "^7.45.2",
157161
"rollup-plugin-copy": "^3.4.0",
@@ -180,4 +184,4 @@
180184
"uuid": "^9.0.1",
181185
"ws": "^8.14.2"
182186
}
183-
}
187+
}

plugins/tailwind-pallette/tailwind-pallette.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ export const tailwindPallettePlugin = () => ({
245245
viewBox="0 0 24 24"
246246
fill="none"
247247
stroke="currentColor"
248-
stroke-width="2"
249-
stroke-linecap="round"
250-
stroke-linejoin="round"
248+
strokeWidth="2"
249+
strokeLinecap="round"
250+
strokeLinejoin="round"
251251
>
252252
<circle cx="13.5" cy="6.5" r=".5" />
253253
<circle cx="17.5" cy="10.5" r=".5" />

0 commit comments

Comments
 (0)