jhmaster
40befd8770
Sync bun-polyfills branch ( #4081 )
...
* bun-polyfills: initial impl. & baseline refactor
* move @types/ws dep from root to /test/
* bun-types: remove ReadableStream.forEach method
(this does not exist, probably added by mistake)
* bun-polyfills: remove extraneous stream utils
* bun-polyfills: add types syncing file
* bun-polyfills: re-arrange global polyfills
* bun-polyfills: fix FileBlob streams types again
* bun-polyfills: sync all of @types/node
* bun-polyfills: typeguard all current polyfills
* bun-polyfills: fix import paths
* bun-polyfills: switch to wasm impl. of farmhash
* bun-polyfills: support default import of bun obj
* bun-polyfills: transpiler placeholder file
* bun-polyfills: loaderless import.meta polyfill
* bun-polyfills: refactor import.meta polyfill
* bun-polyfills: repl entrypoint & todo list index
* bun-types: Add null to return type of Bun.which
* bun-types: match Bun.sha with Bun.hash.SHA512_256
* bun-polyfills: new "repl" package.json script
* bun-polyfills: full refactor of toplevel hashes
* bun-polyfills: these are fixed
* bun-types: NODE_ENV is optional
* bun-polyfills: fix Bun.env types
* bun-types+polyfills: fix HeapSnapshot.version type
* bun-polyfills: fix some web streams type conflicts
* bun-polyfills: update internal FileBlob.slice
* bun-polyfills: fix subproc stdin conversions
* bun-polyfills: better internal fileblob types
* bun-polyfills: try to sync global performance type
* bun-polyfills: working zig wasm polyfills setup
* bun-polyfills: update scripts
* bun-polyfills: fix wasm file location resolution
* bun-polyfills: goodbye farmhash (replaced by zig)
* bun-polyfills: move all Bun.hash polyfills to zig
* bun-polyfills: reimpl. seeding of seeded hashes
* bun-polyfills: impl. undocumented murmur32v2
* bun-polyfills: switch zighash from jsdoc to .d.ts
* bun-types: partial fix of Hash types
* bun-polyfills: documented Hash.murmur32v2
* bun-polyfills: misc updates
* bun-polyfills: enable sourcemaps
* bun-polyfills: handle empty inputs to hash funcs
* bun-types: narrow down hash func types
* bun-polyfills: remove unnecessary bigint casts
* bun-polyfills: impl. Bun.isMainThread
* bun-polyfills: impl. Bun.sleep and fix sleepSync
* bun-polyfills: impl. indexOfLine
* bun-polyfills: impl. Bun.peek.status
* bun-types: fix hashing test
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-10 12:17:39 -07:00
Jarred Sumner
6718950a39
Fix test
2023-08-10 12:08:05 -07:00
dave caruso
68ac8c12c2
remove non-node node-fallbacks ( #4082 )
...
* remove non-node node-fallbacks.
* organize the imports
2023-08-10 11:57:37 -07:00
Jarred Sumner
28d1676d50
Update __global.zig
2023-08-09 16:50:00 -07:00
Colin McDonnell
883c4d8778
Updates
2023-08-09 13:47:32 -07:00
Yash Sharma
8717303a80
Add support for bun --revision ( #4027 )
...
Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local >
2023-08-09 10:43:04 -07:00
Ai Hoshino
385d440694
Fix constructing buffer from a UTF16 string with the Latin1 encoding. ( #4086 )
...
Close : #3914
2023-08-09 09:45:50 -07:00
Jarred Sumner
b3019270c9
Update SIMDUTF ( #4078 )
2023-08-09 09:14:51 -07:00
Jarred Sumner
5d7c77aab0
Update main-worker-file.js
2023-08-08 23:02:45 -07:00
Jarred Sumner
2c70837ae7
Run prettier
2023-08-08 23:01:03 -07:00
Jarred Sumner
bed7ff7dd0
Remove unintentional logs from #4043
2023-08-08 22:59:40 -07:00
dave caruso
450b066cb8
Fix one of the astro segfaults, also fix bun init version ( #4079 )
...
* 4->16
* add assertions
* fix version stuff
2023-08-08 22:27:18 -07:00
Jacques
63f58f4026
feat(bun:test) add support for test.each() and describe.each() ( #4047 )
...
* rename callback to func
* update testscope to handle function arguments
* works
* big cleanup
* works in debug, not release
* fix memory issue & update tests
* catch & str test
* write types for each() & switch tests to ts
* rm & typo
* move some code around & support describe
* review changes
2023-08-08 22:25:32 -07:00
dave caruso
009fe18fa2
worker tests ( #4058 )
...
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-08 22:19:46 -07:00
Tiramify (A.K. Daniel)
40d00a961e
feat(bun/test): Implement "toSatisfy" & "toIncludeRepeated" (fwup) ( #3651 )
...
* Fix merge issues
* oop
* make codegen
* Fix build issues
---------
Co-authored-by: dave caruso <me@paperdave.net >
2023-08-08 22:14:30 -07:00
dave caruso
1941dbbd71
Set exports to {} in user-constructed CommonJSModuleRecords ( #4076 )
2023-08-08 19:37:36 -07:00
dave caruso
320cdcf97e
Fix require("console") #3820 ( #4073 )
...
* Fix #3820
* Add Module (#4074 )
2023-08-08 18:23:33 -07:00
Dylan Conway
454407003e
Update Worker.cpp
2023-08-08 15:08:16 -07:00
Ai Hoshino
511f6bdf79
1. Check if the argument is an empty string in path.format. ( #4064 )
...
2. Avoid duplicating '/' at the beginning of the path.
Close : #4005
2023-08-08 07:03:18 -07:00
Jarred Sumner
320ee6b6b7
import bun ( #4055 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-08 01:42:44 -07:00
Jarred Sumner
38df5b146f
Enable Headers.prototype.getSetCookie
...
Fixes #4057
2023-08-08 01:18:36 -07:00
Jarred Sumner
25c91aecab
Remove printf
2023-08-08 00:31:46 -07:00
dave caruso
5497accbdb
Add env option for node:worker_threads ( #4052 )
...
* almost works
* env stuff
* test fixes
* wtfmove
* ok
* ok
* ref by default
* it now does the ref stuff by default
* cool
2023-08-07 23:58:38 -07:00
jhmaster
182e600eb7
Fix Bun.hash functions ( #4054 )
...
* fix `Bun.hash` functions to behave as expected
* update Bun.hash tests
* properly test the returned hash
* include murmur32v2
* update Bun.hash docs
* run fmt
2023-08-07 23:30:05 -07:00
Dylan Conway
cb873cc081
fix worker.ref()
2023-08-07 22:40:32 -07:00
Jarred Sumner
330d19e344
add bun update to help menu
2023-08-07 21:14:42 -07:00
Dylan Conway
2fe6a965af
implement fetching data urls ( #4000 )
...
* fetch data urls
* `byteSlice`
* deinit slice
* allocate `mime_type` string if needed
* `content_type_allocated` and uncomment tests
* `str_`
* createAtom and slice decode result
2023-08-07 20:15:53 -07:00
Alex Lam S.L
a32097aa9f
implement bun update ( #4046 )
...
- analogous to `npm update`
- `bun update <name>` to refresh specified package under `package.json`
- `bun update` to refresh all package to latest versions
2023-08-07 20:11:32 -07:00
Dylan Conway
1239c9460a
fix iterating headers with set-cookie ( #4048 )
...
* fix iterating headers with `set-cookie`
* a test
* move work to `HTTPHeaderMap::set`
* append set-cookie after sort
* remove compare function
2023-08-07 19:32:23 -07:00
Jarred Sumner
f2f227720b
WASM test analyzer ( #4043 )
...
* wasm
* WASM test scanner
* Update Makefile
* Update Makefile
* Configurable heap limit
* slightly better error
* Update js_parser.zig
* Update path.test.js
* Update node.mjs
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-07 18:51:16 -07:00
Colin McDonnell
0b183beb51
Improve plugin docs
2023-08-07 14:02:43 -07:00
Ai Hoshino
5ce393aab8
Fix path.normalize edge case. ( #4042 )
...
Close : #4041
2023-08-07 06:44:04 -07:00
Jarred Sumner
00a907c7de
Fixes #4001 ( #4034 )
...
* Avoid a utf8 conversion in isDetached
* Fixes #4001
* hit the long url codepath
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 22:49:10 -07:00
Jarred Sumner
0665733b03
Fixes #4029 and fixes #4022 ( #4032 )
...
* Fixes #4029 and Fixes #4022
Fixes #4029
Fixes #4022
* Add test for all the fetches
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 20:39:40 -07:00
Jarred Sumner
70c3371b14
Fixes #4010 ( #4031 )
...
* Fixes #4010
* Update websocket_http_client.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 19:30:06 -07:00
Jarred Sumner
0b2be88bac
Update build-id
2023-08-06 18:07:15 -07:00
Jarred Sumner
8297fb0d2f
Bind require.resolve() ( #4030 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 18:06:18 -07:00
Jarred Sumner
04925bb94c
Fixes #4020
2023-08-06 17:57:44 -07:00
Yash Sharma
3185ca2d95
Running missing scripts exits with non-0 ( #4026 )
...
Co-authored-by: Yash Sharma <yashsharma@Yashs-MacBook-Air.local >
2023-08-06 17:43:24 -07:00
Alex Lam S.L
b93f304c06
[install] handle bun add of existing peerDependencies correctly ( #4028 )
2023-08-06 17:42:08 -07:00
Jarred Sumner
a9b3d58353
fix nan
bun-v0.7.3
2023-08-06 07:55:22 -07:00
Jarred Sumner
cf48379921
Update coverage.md
2023-08-06 07:48:06 -07:00
Jarred Sumner
f8026df821
Update lol-html
2023-08-06 07:35:29 -07:00
Jarred Sumner
fa4e5d033e
Fixes #3129 ( #4018 )
...
* Fixes #3129
* add CloseEvent
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 07:35:07 -07:00
Jarred Sumner
1462445419
Code coverage for bun test ( #3975 )
...
* WIP code coverage initial commit
* almost works
* one approach
* Code Coverage
* Update WebKit
* it works but is not yet accurate
* skip double ascii check
* wrapper
* it works but i'm not sure what to do about blocks
* hide blocks for now
* Update ZigSourceProvider.cpp
* Create coverage.md
* Update nav.ts
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 06:30:23 -07:00
Ai Hoshino
ecdf2ffa6c
feat: impl dns.getServers ( #3982 )
...
* feat: impl `dns.getServers`
Close : #3981
* check return value of `ares_inet_ntop`
2023-08-06 06:16:54 -07:00
dave caruso
cd0774cd89
Implement --test-name-pattern ( #3998 )
...
* Fix end not being emitted all the time
* stuff
* Implement -t
* Undo js_printer changes
* Undo http changes
* Update InternalModuleRegistryConstants.h
* Delete unrelated test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-06 06:13:39 -07:00
Ai Hoshino
cf8650937a
Fix(cli/init): support subpath entrypoint. ( #4002 )
2023-08-05 04:48:22 -07:00
dave caruso
3803d39840
Remove Bun.plugin transpiler hook, encourage usage of --preload instead ( #3987 )
...
* Remove Bun.plugin transpiler hook
* one missing case
2023-08-05 04:42:30 -07:00
Colin McDonnell
78081cbb40
Support --dev/-D and support more flags on bun install ( #3989 )
2023-08-04 20:41:16 -07:00