Jarred Sumner
618ecdb76c
[resolver] When importing from an ES Module, prefer .{m,c}{t,j}s
2021-12-16 00:39:49 -08:00
Jarred Sumner
8af6ad7278
wip fix live bindings
2021-12-15 17:08:04 -08:00
Jarred Sumner
c07de8c4d3
[JS transpiler] Simplify CommonJS interop callback
2021-12-15 17:08:04 -08:00
Jarred Sumner
e10fe8aaad
[JS transpiler] Ensure reserved words don't end up in nonUniqueIdentifier()
2021-12-15 17:08:04 -08:00
Jarred Sumner
0a916543b3
[JS Parser] Fix bug with template literals that create new scopes in the tag and the template literal value
2021-12-15 16:52:38 -08:00
Jarred Sumner
2c53ff2980
Add a resource hint for preloading node_modules.bun and route asset in the fallback rendering
2021-12-11 15:58:16 -08:00
Jarred Sumner
b2fcc027a9
[resolver] Do not throw on require()/import errors when they're caught (and import is an await target)
2021-12-04 03:26:14 -08:00
Jarred Sumner
04e0910dea
Fix occasional segfault when parsing JSON in http server
2021-11-25 17:17:17 -08:00
Jarred Sumner
cca8081f2e
add env var for disabling bun.js SSR
2021-11-21 17:02:21 -08:00
Jarred Sumner
469a36e3b6
[HMR] Large perf improvement for JS hot reloads at runtime
...
From benchmarking, I noticed that a lot of time was spent running
`HMRModule.update()`.
We don't need to call that function if updates for the same module ID have not changed any exports
2021-11-21 03:52:14 -08:00
Jarred Sumner
19949c0743
Update fixtures.zig
2021-11-16 21:26:41 -08:00
Jarred Sumner
8d03e0cf02
[router] Improve test coverage & handle case-sensitive static routes better
2021-11-16 21:26:37 -08:00
Jarred Sumner
265b1035f4
[router] Fix case sensitivity bug with route params
2021-11-16 16:57:02 -08:00
Jarred Sumner
8e0230b756
[router] Tweak sorting order & update routing tests
2021-11-16 16:33:33 -08:00
Jarred Sumner
478273e044
[router] Update router tests
2021-11-16 15:34:22 -08:00
Jarred Sumner
d0c2f5495c
[internal] Fix issue with tests
2021-11-16 15:34:09 -08:00
Jarred Sumner
4a09ad51f0
[router] Fix bug with dynamic route params for route segments in the middle
2021-11-16 15:32:50 -08:00
Jarred Sumner
5bef1b46d3
[router] small cleanup
2021-11-16 15:31:47 -08:00
Jarred Sumner
3bec430192
[router] Fix edgecase with trailing slashes in directory path
2021-11-16 15:29:52 -08:00
Jarred Sumner
01d1f1d258
Fix #66
...
embarassing!
2021-11-15 15:51:39 -08:00
Jarred Sumner
4e775d275c
[bun dev] When --disable-bun.js flag is passed, don't send 500s for rendering the fallback
2021-11-15 15:47:28 -08:00
Jarred Sumner
bba74499e5
[JS Printer] Don't escape slashes
2021-11-15 15:39:21 -08:00
Jarred Sumner
b61cbb1df8
[internal] const is faster than var (in Zig! not javascript)
2021-11-15 15:39:13 -08:00
Jarred Sumner
1a60d7df98
[JS Printer] Fix bug with template literals
2021-11-15 15:38:49 -08:00
Jarred Sumner
89a7e3bf2f
slightly reduce reallocations
2021-11-11 15:52:50 -08:00
Jarred Sumner
fe1a6cee10
[JSON Parser] Improve perf by 2%-4%
...
We warn when a JSON object has duplicate keys, but detecting duplicate keys has a cost. Now the hash table used for deduping keys is pooled instead of reallocated each time
This also removes a call to potentially resize object properties and arrays to their smallest possible size. Resizing an array can be expensive
2021-11-11 15:33:39 -08:00
Jarred Sumner
23bdc6f792
fixup
2021-11-09 15:50:10 -08:00
Jarred Sumner
de7274fcff
fix linux build
2021-11-09 15:39:16 -08:00
Jarred Sumner
b126392a8e
Fix missing symbol error for pre-macOS 11
2021-11-09 14:13:58 -08:00
Jarred Sumner
351184991a
📷
2021-11-08 17:42:18 -08:00
Jarred Sumner
14b51ef57c
Disable Object.freeze
2021-11-08 15:53:37 -08:00
Jarred Sumner
241525947c
[JS Printer] Fix bug with optional chain
2021-11-08 15:37:31 -08:00
Jarred Sumner
8b3463e73f
[bun run] Remove unnecessary code
2021-11-07 14:45:06 -08:00
Jarred Sumner
3cb7dbe921
[resolver] Fix race condition that can cause the elapsed counter to integer overflow
2021-11-07 14:44:55 -08:00
Jarred Sumner
bc3c17ffc8
Improve ZSH completions
2021-11-07 02:41:26 -08:00
Jarred Sumner
3379289024
[bun run] Filter out builtin commands from showing up at the top
2021-11-07 02:39:31 -08:00
Jarred Sumner
562a8df46b
[bun run] Filter out js files that start with . from completions
2021-11-07 02:39:01 -08:00
Jarred Sumner
68e2869d64
[bun run] Filter out post* and pre* from the completions
2021-11-07 02:38:38 -08:00
Jarred Sumner
c6818cc55c
[zsh] Better zsh completions install dir guessing
2021-11-07 02:38:09 -08:00
Jarred Sumner
08b3bab2ec
[internal] Generated files
2021-11-06 19:25:12 -07:00
Jarred Sumner
d7d9df726b
[internal] Use a better timer for measuring parsing & resolving timings
2021-11-06 18:42:42 -07:00
Jarred Sumner
c64ef1e2f4
[resolver] Fix bug with package.json "exports" resolution with a suffix after the wildcard
2021-11-05 04:10:43 -07:00
Jarred Sumner
c1aa0323dc
[bun run] Fix issue with \\" \\" in scripts
2021-11-05 04:09:27 -07:00
Jarred Sumner
d0823beef5
Update run_command.zig
2021-11-05 01:23:07 -07:00
Jarred Sumner
b0e98892e5
[bun run] Exclude .config.* files from showing up as runnable with Bun.js
2021-11-05 01:22:48 -07:00
Jarred Sumner
0006d28cbb
📷 Snapshots
2021-11-05 01:16:19 -07:00
Jarred Sumner
d4c1bf6c67
[bun run] Fix bug with yarn getting replaced for - commands
2021-11-05 01:15:24 -07:00
Jarred Sumner
3ef55d10ae
[bun run] Improve fish completions by adding a description
2021-11-05 01:15:09 -07:00
Jarred Sumner
5ce171d92c
[bun run][bun create] Do not follow symlinks when exec'ing a child process
2021-11-04 21:37:10 -07:00
Jarred Sumner
e409148941
[bun run] Fix bug with quotes and spaces
...
Fixes #53
2021-11-04 21:00:44 -07:00