Jarred Sumner
f862ae4050
[node:vm] Propagate global properties defined on the new context object
2023-05-18 18:45:13 -07:00
Jarred Sumner
958f5f8b99
clang-format
2023-05-18 18:37:53 -07:00
Silver
ac64eb420d
Implement node:vm ( #2785 )
...
* feat: begin implementing node:vm Script object
* refactor: clean up and address review comments
* refactor: rename Script to VMModuleScript
* fix: expose VMModuleScript.prototype
also oops I forgot to commit the new files last time
* feat(vm): Implement contexts and scripts
* feat(vm): implement globalThis
* feat(vm): expose node:vm module with global helper functions
* refactor(vm): rename VMModuleScript to NodeVMScript
* feat: implement script options
* doc: add TODOs for runIn*Context options
2023-05-18 16:45:18 -07:00
Jarred Sumner
b76974a2a8
Fixes #2924
2023-05-18 14:41:50 -07:00
Jarred Sumner
5bec0252a0
handle when cwd is not writable, attempt to use tmp dir explicitly
...
Fixes https://github.com/oven-sh/bun/issues/2944
2023-05-18 14:21:19 -07:00
Jarred Sumner
f7f0acbcd3
Bump
2023-05-18 13:41:16 -07:00
Jarred Sumner
f3a1a3bb2b
Fixes #2946 ( #2949 )
...
* Fixes #2946
* Update string_mutable.zig
* Fixes #2948
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-18 13:27:05 -07:00
Jarred Sumner
755c0d62c4
Fixes #2942 ( #2947 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-18 12:35:34 -07:00
Degreat
228ca3269a
Implement expect().toBeCloseTo() ( #2870 )
2023-05-18 11:32:31 -07:00
Dylan Conway
621232c197
use raw template contents for tagged templates ( #2937 )
...
* use raw template contents when tagged
* use union for template contents
* pointer to cooked contents
* raw if suffix
* fix and don't skip test
2023-05-18 10:52:34 -07:00
Jarred Sumner
642b3978a6
Fixes #2928 ( #2939 )
...
* Fixes #2928
* another case
* Fix console.log with utf-16 string mismatched quotes
* Fix issue with json
* Even more cases
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-05-18 10:38:50 -07:00
Jarred Sumner
17c258eb34
Update fs.test.ts
2023-05-17 20:51:38 -07:00
Jarred Sumner
aacbef3cf9
Mention setting target to "node" or "bun" when a ResolveMessage occurs for a Node.js builtin
2023-05-17 20:29:35 -07:00
Jarred Sumner
4f7198f780
Fixes https://github.com/oven-sh/bun/issues/2931
2023-05-17 20:19:31 -07:00
Jarred Sumner
21086c3a78
Update benchmarking.md
2023-05-17 18:52:29 -07:00
Jarred Sumner
206b85e5db
Support static string values in our class bindings generator
2023-05-17 18:52:23 -07:00
Jarred Sumner
25447426f1
Make BuildError and ResolveError use C++ instead of JSC C API
...
Fixes memory leak with private data never being cleared
Fixes a case where a ResolveError could actually be a BuildError
2023-05-17 18:51:50 -07:00
Jarred Sumner
67f543daa7
Update json-parse-stringify.mjs
bun-v0.6.2
2023-05-17 12:25:19 -07:00
Jarred Sumner
6c847f638f
microbenchmark for json.parse / stringify
2023-05-17 12:12:42 -07:00
Jarred Sumner
8d90d79587
Bump
2023-05-17 12:06:43 -07:00
Jarred Sumner
59adc6cb78
Merge branch 'jarred/webkit-upgrade-may-17'
2023-05-17 11:36:24 -07:00
Jarred Sumner
bff465a2a2
Finish bumping
2023-05-17 11:34:37 -07:00
Bryce Kalow
fb7fb0a537
fix: bun-plugin-server-components name ( #2919 )
2023-05-17 11:04:40 -07:00
dave caruso
f1b16cd36a
do not fail bundles on warnings ( #2920 )
2023-05-17 10:25:56 -07:00
Jarred Sumner
84fd6a514a
Do the WebKit upgrade
2023-05-17 09:55:24 -07:00
Dylan Conway
bf1216021e
resolve rope before pushing to previous string ( #2909 )
2023-05-16 17:19:56 -07:00
Harry Yep
2f4162e692
fix: broken link ( #2897 )
2023-05-16 17:08:45 -07:00
dave caruso
ad20b13985
Fix segfault on passing undefined to bun.build ( #2902 )
2023-05-16 17:08:00 -07:00
Dylan Conway
1ad8c54c90
fix asset naming output paths ( #2904 )
...
* rename to `src_path` and `dest_path`, use `dest_path` for output
* format
* option for compile
2023-05-16 17:07:40 -07:00
Jarred Sumner
78229da760
Bump
bun-v0.6.1
2023-05-16 11:44:03 -07:00
Jarred Sumner
3adadffc0e
Fixes #2895
2023-05-16 11:43:09 -07:00
Colin McDonnell
366eba78f0
Tweaks to bundler docs ( #2867 )
...
* WIP
* Fix typo
* Updates
* Document --compile
* Add bundler benchmark
* Remove esbuild
* Add bench to docs
* Add buttons
* Updates
2023-05-16 10:47:00 -07:00
Jarred Sumner
60bc804c58
Bump
bun-v0.6.0
2023-05-16 09:31:04 -07:00
Jarred Sumner
65237b3054
Update run-cjs.test.ts
2023-05-16 08:52:14 -07:00
dave caruso
c842f5bfe3
Fix running commonjs modules as entry point ( #2885 )
...
* fix cjs run issue
* use a primordial
* fix behavior
* fix it again
* fix tste
2023-05-16 08:49:35 -07:00
Ciro Spaciari
fe74c948cd
feat(WebSocketServer) WebSocketServer wrapper + socket.io initial support ( #2880 )
...
* WebSocketServer wrapper + socket.io initial support
* fix up backpressure
* fix up backpressure
* fix http address
* add socket.io tests
* add closing tests
* add connection state recovery tests for socket.io
* add handshake test
* add middeware tests for socket.io
* added socket.io socket middleware tests
* add more socket.io test comment/skip hang tests
* add pending package for tests
* add server attachment servers for socket.io
* add utility-methods tests for socket.io
* rename
* rename
* add messaging-many socket.io tests
* add namespaces tests to socket.io
* skip some tests
* fmt
* add packages to general package.json
2023-05-16 08:48:17 -07:00
Dylan Conway
9c85483a81
handle printing missing expressions and add tests ( #2872 )
...
* handle missing expressions and add tests
* minify missing expression blocks in parser
2023-05-15 21:50:44 -07:00
dave caruso
29572737ab
bundler testing ( #2886 )
...
* bundler testing
* add requireVarThenExport test
* work towards adding more esbuild tests
* tests
* remove this file
2023-05-15 21:18:52 -07:00
dave caruso
dce4a15e69
Change the debug id suffix to hex encoded "bun!bun!" ( #2890 )
2023-05-15 21:15:32 -07:00
Colin McDonnell
a52715597a
Add plugins for yaml & RSC ( #2888 )
...
* WIP
* WIP
* Add yaml plugin
* Publish v0.0.1
* Updates
* Start RSC plugin - not finished
* Add readme
* Updates
* Add shell dirs for a few other plugins
2023-05-15 20:37:03 -07:00
Jarred Sumner
b2a750e186
remove incorrect comment
2023-05-15 10:55:35 -07:00
Jarred Sumner
dd11f02a45
[bun build] builds w/ sourcemaps get 15% faster
...
parallelize quoting source contents
2023-05-15 08:49:54 -07:00
Jarred Sumner
1088a22802
Add TODO
2023-05-15 06:33:20 -07:00
Jarred Sumner
9076a981e8
Set files with #! as executable
2023-05-15 06:31:21 -07:00
Jarred Sumner
8eaf30c022
[bun build] Automatically set target to bun when a hashbang is provided
2023-05-15 06:30:55 -07:00
Jarred Sumner
0a879be328
[bun build --compile] Avoid creating holes
2023-05-15 05:57:46 -07:00
Jarred Sumner
ddb6de2fe6
[bun build --compile] Add some retry logic for opening the files
2023-05-15 05:57:27 -07:00
Jarred Sumner
8a68f3aa71
Remove unused dockerfile
2023-05-15 05:19:24 -07:00
Jarred Sumner
386eec31ac
More error message cleanup
2023-05-15 05:17:15 -07:00
Jarred Sumner
9c19383843
Fix crash when importing a file with an unknown extension
2023-05-15 04:35:59 -07:00