Revenity
1e96cbfb02
Update Stric guides ( #4137 )
2023-08-12 20:03:41 -07:00
dave caruso
78defe7a87
Fix worker event loop ref/unref + leak ( #4114 )
...
* make more tests pass
* worker changes
* fix some bugs
* remove this
* progress
* uh
* okay
* remove console log
* a
* comment assert for later
* mergable state
* remove test
* remove test
2023-08-12 13:51:03 -07:00
Ai Hoshino
b94433ce86
Fix using uninitialized variable when formatting config_path. ( #4129 )
...
Close : #4128
2023-08-11 22:14:08 -07:00
Jarred Sumner
ca26780b27
Deprecate loading node_modules.bun ( #4131 )
...
* Deprecate loading `node_modules.bun`
* realpath
* regenerate schema
* More
* more
* Update cli.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-11 22:13:46 -07:00
jhmaster
117cee5ca5
bun-wasm fixes & improvements (#4126 )
...
* automate Bun.version & revision polyfills
* polyfill Bun.gc
* bun:jsc module initial polyfills
* fixes & improvements to bun-wasm
2023-08-11 18:20:21 -07:00
Jarred Sumner
43ebffedcd
Support TypeScript's export type * as Foo from 'bar' ( #4125 )
...
* [TypeScript] Support `export type * as Foo from 'bar'`
* Update js_parser.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-11 18:06:48 -07:00
Jarred Sumner
ccb9daf7a4
Fix wasm build
2023-08-11 16:24:29 -07:00
Jarred Sumner
c6d3b375b8
async realpath ( #4117 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 22:15:07 -07:00
Jarred Sumner
4731a460a2
Remove assertion
2023-08-10 19:58:59 -07:00
Jarred Sumner
99af827f25
More lazily initialize these static strings
2023-08-10 19:56:02 -07:00
Dylan Conway
a6ec7fe9b1
don't check for trailing slash, var stream
2023-08-10 19:06:51 -07:00
Dylan Conway
513a6d0df3
run files without extensions ( #4113 )
...
* run script without extension
* process stdio write fix
2023-08-10 19:00:06 -07:00
Jarred Sumner
115704b27b
Fix memory leak in base64url ( #4111 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 16:43:19 -07:00
Jarred Sumner
85b81624dc
Handle thundering herd of setInterval ( #4109 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 15:25:52 -07:00
Adhityaa Chandrasekar
cf12d80f5e
fs.zig: create temp files with 0o700, not 0o007 ( #4107 )
2023-08-10 14:00:13 -07:00
Colin McDonnell
58e74eadb5
Update remix guide
2023-08-10 13:54:17 -07:00
Jarred Sumner
be05b93f39
zig fmt
2023-08-10 13:32:37 -07:00
Jarred Sumner
e25833d009
Fixes #4062 ( #4106 )
...
* Fixes #4062
* Update encoding.zig
* Use faster C++ impl
* Update wtf-bindings.cpp
* undo
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-08-10 13:32:04 -07:00
Jacques
e65535cc05
bun test: format description of test.each ( #4092 )
...
* bun test: format description
* add tests for tests
* only
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-10 13:29:53 -07:00
dave caruso
74f9fabd01
add util.formatWithOptions ( #4090 )
...
* Add formatWithOptions
* tests and tweaks
* adjust
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-08-10 13:09:03 -07:00
Colin McDonnell
8d207925d7
Fix title
2023-08-10 12:37:14 -07:00
Colin McDonnell
e0569ac47a
Add remix guide
2023-08-10 12:36:54 -07:00
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