Jarred Sumner
5ee063f6b2
[JS/JSON] Optimize parsing long strings
2022-03-07 00:30:51 -08:00
Jarred Sumner
50c8747c97
[JS Parser] Add optimization for JSX spread
2022-03-07 00:29:50 -08:00
Jarred Sumner
3598f0ed8a
1.7x faster sourcemap printing
2022-03-06 17:54:12 -08:00
Jarred Sumner
7c5c6cd519
source maps work for app code in bun dev!
2022-03-06 07:35:16 -08:00
Jarred Sumner
093807391a
[JS Parser] dot property shorthand for JSX
...
This is a non-standard backwards-compatible feature that I suspect other tooling will soon adopt (and expect to help other tooling adopt it)
```jsx
var hello = {hi: 'yo'};
export const Foo = () => <Bar {hello.hi} />
```
Desugars into:
```jsx
var hello = {hi: 'yo'};
export const Foo = () => <Bar hi={hello.hi} />
```
This works with defines and macros too.
```jsx
export const Foo = () => <Bar {process.env.NODE_ENV} />
```
```jsx
export const Foo = () => <Bar NODE_ENV="development" />
```
2022-03-05 19:33:25 -08:00
Jarred Sumner
18c923596a
Update README.md
2022-03-05 03:15:05 -08:00
Jarred Sumner
d3de5ff017
Update README.md
2022-03-05 03:14:25 -08:00
Jarred Sumner
f8f2ec8f35
Update README.md
2022-03-05 03:00:13 -08:00
Jarred Sumner
af6c18ccc5
Begin implementing sourcemaps
2022-03-05 02:56:29 -08:00
Jarred Sumner
4f5aa438d6
[JS Parser] Support JSX prop punning
2022-03-04 17:51:22 -08:00
Jarred Sumner
bd2f818500
Delete peechy.js
2022-03-04 05:03:33 -08:00
Jarred Sumner
29f240ac79
[bun.js] Add atob and btoa
2022-03-04 03:30:29 -08:00
Jarred Sumner
c53dc308be
Update release.sh
2022-03-04 00:27:22 -08:00
Jarred Sumner
cb8e5d2cd9
Bump zig in docker
2022-03-04 00:26:21 -08:00
Jarred Sumner
d8d5b1a071
more tests
2022-03-04 00:26:13 -08:00
Jarred Sumner
bb64920cf0
add datetime package
2022-03-04 00:21:08 -08:00
Jarred Sumner
427c39b858
Update analytics_thread.zig
2022-03-04 00:20:59 -08:00
Jarred Sumner
b0d5903aba
reduce number of global symbols
2022-03-04 00:20:54 -08:00
Jarred Sumner
dbc28a24ac
more
2022-03-04 00:20:39 -08:00
Jarred Sumner
51fbbea1d3
upgrade zig
2022-03-04 00:20:22 -08:00
Jarred Sumner
696710fd7a
mark more things as unreachable
2022-03-02 22:17:20 -08:00
Jarred Sumner
5ace39e4cb
Add context ptr to forEach in iterable
2022-03-02 22:16:04 -08:00
Jarred Sumner
b878f9054c
[bun.js] Add Bun.inspect – like util.inspect()
2022-03-02 22:14:35 -08:00
Jarred Sumner
871780fd28
Make http requests a little faster
2022-03-02 21:17:50 -08:00
Jarred Sumner
4c5eb4b4db
[bun dev] Improve HMR performance by pooling websocket threads
...
Previously, bun would create a new thread for each websocket connection. Now, it re-uses them
Eventually, this should use evented i/o but other changes need to be made to support that
2022-03-02 21:17:38 -08:00
Jarred Sumner
117ca5355d
Send Date header in bun dev
2022-03-02 21:15:55 -08:00
Jarred Sumner
1a02782539
[internal] log memory allocations in mimalloc arenas
2022-03-02 21:13:34 -08:00
Jarred Sumner
c7941bfab0
Reduce stack size usage by about 120 KB
2022-03-02 21:12:31 -08:00
Jarred Sumner
88b60e6f10
add is_bindgen stub
2022-03-02 21:12:02 -08:00
Jarred Sumner
c5a2172c7b
reduce number of global constants
2022-03-02 21:11:37 -08:00
Jarred Sumner
b2d847a273
reduce number of global variables
2022-03-02 21:11:19 -08:00
Jarred Sumner
4fb5e068bc
Update bindings.zig
2022-03-02 17:50:29 -08:00
Jarred Sumner
4be4540acf
Remove function from bindings
2022-03-02 17:50:25 -08:00
Jarred Sumner
a9d99dc0e5
DELETE header
2022-03-02 17:49:55 -08:00
Jarred Sumner
d1922d4742
[bun.js] fix unicode handling in Router
2022-03-02 17:49:23 -08:00
Jarred Sumner
d85c59208c
[bun.js] Fix crash due to incorrectly creating string
2022-03-02 17:49:09 -08:00
Jarred Sumner
17d625a735
remove a threadlocal
2022-03-02 15:34:26 -08:00
Jarred Sumner
42f61ebf8a
cleanup error printing
2022-03-02 03:07:28 -08:00
Jarred Sumner
5e55c02bc6
Update global.zig
2022-03-02 03:07:08 -08:00
Jarred Sumner
ea7d38cea7
Update fs.zig
2022-03-02 03:07:04 -08:00
Jarred Sumner
4b36efd50a
[bun run] Set more environment variables
2022-03-02 03:06:59 -08:00
Jarred Sumner
c3b96c90d3
clean up error message when CLI flag is invalid
2022-03-02 03:06:30 -08:00
Jarred Sumner
c0584c5102
add bun pm cache and bun pm cache rm commands
2022-03-02 03:06:11 -08:00
Jarred Sumner
87c71207e3
[bun.js] ResolveError.prototype.toString() BuildError.prototype.toString()
2022-03-01 22:21:39 -08:00
Jarred Sumner
149bbc12b5
add allowBunRuntime and autoImportJSX flags to Bun.Transpiler
2022-03-01 22:21:03 -08:00
Jarred Sumner
78cae049d2
cleanup code that checks if it should send an HTTP body
2022-03-01 22:19:15 -08:00
Jarred Sumner
7b4f239d33
[JS Parser] Fix bug with super from adding class static blocks
2022-03-01 22:18:16 -08:00
Jarred Sumner
80d4faa8ab
Update bundler.zig
2022-03-01 22:17:43 -08:00
Jarred Sumner
4bb3f207ed
Remove unused bool
2022-03-01 22:16:17 -08:00
Jarred Sumner
2ccb063d20
[bun.js] Allow disabling runtime imports so bun can build for node
2022-03-01 22:16:09 -08:00