Jarred Sumner
aeb3bb949b
Upgrade WebKit ( #2643 )
...
* Missing export
* Regenerate builtins
* Fix crash in require()
* Various breaking JSC changes
* hopefully speed up C++ compilation a little
* Skip failing test fo rnow
* Update WebKit
* Add a comment
* Fix error in postinstall
* Update WebKit
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-04-13 04:11:12 -07:00
Dylan Conway
4792abdb7f
Implement toMatchSnapshot() ( #2294 )
...
* buggy snapshot
* error output for failed snapshot
* missing first
* hints
* open dir once, better cleanup
* update flag
* truncate on update
* object and class snapshot formatting
* array formatting
* no function name, single item is empty array
* string objects, maps, sets, promise
* avoid using invalid memory
* handle number objects
* handle extending `Number`
* boolean objects
* snapshot tests and test updates
* snapshot format for buffers
* safer snapshot parsing
* property matchers setup
* strings and tests
* generate classes with empty prototype
* optional `propertyMatchers` parameter
* new test folder structure
* strings.eqlLong
* globalObject.throwPretty() and expect.any tests
* add updateSnapshot flag to help
* move snapshot format out of `printErrorlikeObject`
* empty object snapshot format
* separate typed array, remove trailing comma
* use `isCell`, object trailing commas
* handle unicode
* todo for primitive constructors
* switch to `JSC.Node.Syscall.open` and `JSC.Maybe`
* use js parser for snapshot files
* deinit ast, log parse error
* copy/paste most of `exports.ZigConsoleClient`
* remove snapshot option
* remove ordered properties option
* remove snapshot format option from `exports.zig`
* remove extra newlines
* change mode
* update test runner output
* escape backticks faster
* `bunx jest` in temp dir
* remove buffered writer
* add `toMatchSnapshot` to types
* cleanup, switch to `pread`
* cli `--update` flag
* `--update-snapshots`
* remove string object format
2023-03-14 16:50:59 -07:00
Jarred Sumner
0911bd3af2
Support well known symobls in prototypes for generated classes
2023-02-22 19:04:54 -08:00
Jarred Sumner
5528c0fa47
Backport std::forward change
2023-02-11 17:31:16 -08:00
Jarred Sumner
7886bce8c8
cleanup
2023-02-07 10:51:55 -08:00
Jarred Sumner
52f9c3d05e
set the type
2023-02-06 23:27:18 -08:00
Jarred Sumner
f947987a2c
default not configurable
2023-02-06 23:19:12 -08:00
Jarred Sumner
7ddbbc53b4
Make Stat functions fast
2023-02-06 21:18:58 -08:00
Jarred Sumner
77974f2a6e
tweaks to generator
2023-02-06 19:27:21 -08:00
Jarred Sumner
ad692495a1
Update class-definitions.ts
2023-01-24 00:14:59 -08:00
Jarred Sumner
d141783ebd
Sort the generated classes list
2023-01-23 04:01:45 -08:00
Jarred Sumner
d4ef935478
[bindings] Add custom field to enable writing one-off C++ in the zig class
2023-01-23 04:01:36 -08:00
Jarred Sumner
e18863df1b
attempt (unsuccessfully) to improve c++ build time
2023-01-10 10:23:11 -08:00
Jarred Sumner
905a3313b5
check for isEmpty or !isCell
2023-01-09 03:18:41 -08:00
Jarred Sumner
da11bb4a82
[internal] Fix type casting in Zig bindings
2023-01-08 07:37:51 -08:00
Jarred Sumner
c0dd284136
Upgrade to latest Zig ( #1610 )
...
* @min and @max
* builtins and some trivial ones
* Most of them
* more
* more!
* More Progress
* wip
* Update tagged_pointer.zig
* Update http_client_async.zig
* Most of the iterable dir changes
* alright
* Remove usages of deprecated formatters
* 📷
* fmt
* Update shimmer.zig
* wip
* wip
* wip
* progress
* more
* Latest
* stuck on error
* latest
* workaround stage2
* wip
* Update string_immutable.zig
* wip
* Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
* Fix build errors
* Fixup most of the test failures
* Fix `make headers`
* Fix "outside package path" error
* Fixup aligned alloc
* Add missing file
* linux
* More linux fixes
* use latest peechy
* Fix transpiler test failure
* Forgot about these
* Fixup test failure
* Update node-timers.test.ts
* [node:htt] Fix `undefined is not an object` error
Fixes https://github.com/oven-sh/bun/issues/1618
* Update http.exports.js
* Make this test less flaky
* fix hashes
* Fix hex formatting and zls issues
* Download zig version
* Update Dockerfile
* Update Dockerfile
* Update uws
* Update Dockerfile
* Set llvm version
* Update README.md
* Update uws
* Update Dockerfile
* Update io_linux.zig
* Update bun.zig
* Log output
* workaround strange @cInclude error
* Make ffi tests better
* Don't use cImport
* Update c.zig
* Update c-bindings.cpp
* call setOutputDir
* Update Dockerfile
* Use a longer name
* latest
* Update serve.test.ts
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Veikka Tuominen <git@vexu.eu >
2022-12-28 00:51:22 -08:00
Jarred Sumner
b631ea7d72
import everything from "bun" where possible
2022-11-29 02:42:56 -08:00
Jarred Sumner
d1a4f4fd69
Introduce FileSink.ref() and FileSink.unref()
2022-11-25 00:08:36 -08:00
Jarred Sumner
e94172255d
Support no constructor in class generator script
2022-11-22 02:13:19 -08:00
Jarred Sumner
dfa62b660d
[internal] Implement visitAdditionalChildren
2022-11-20 07:02:14 -08:00
Jarred Sumner
5ff2cd3418
[streams] Fix memory leak affecting React SSR and more
2022-11-20 06:58:29 -08:00
Jarred Sumner
38b5a85d8a
Fix a GC issue with Bun.spawn
...
The `Subprocess` object stays alive until the process exits, even if it's never referenced
2022-11-19 01:25:15 -08:00
Dylan Conway
43b4e1b67b
bun test matchers and tests ( #1526 )
...
* ignore webkit for cherry-pick
* toContain and toBeTruthy
* toBe null, undefined, falsy, toHaveProperty, .not
* markBindings
* remove toHaveProperty, undo ignore webkit, more tests
* undo ignore webkit
* remove bad tests
* check if length property exists for toHaveLength()
* fix call signature
* handle argument that is not an integer
* getLengthOfArray returns u64
* switch to truncate
* toHaveLength() edge cases
* add toBooleanSlow()
* infinity, nan, negative
2022-11-18 23:03:39 -08:00
Dylan Conway
025749027b
add generated getter/setter type with thisValue ( #1513 )
2022-11-15 17:47:38 -08:00
Colin McDonnell
f7f1b60444
Add bun-types, add typechecking, add child_process types ( #1475 )
...
* Add bun-types to packages
* Improve typing
* Fix types in tests
* Fix dts tests
* Run formatter
* Fix all type errors
* Add strict mode, fix type errors
* Add ffi changes
* Move workflows to root
* Add workflows
* Remove labeler
* Add child_process types
* Fix synthetic defaults issue
* Remove docs
* Move scripts
* Run prettier
* Include examples in typechecking
* captureStackTrace types
* moved captureStackTrace types to globals
* Address reviews
Co-authored-by: Colin McDonnell <colinmcd@alum.mit.edu >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2022-11-09 15:40:40 -08:00
Jarred Sumner
1604666988
20% faster TextDecoder on small inputs
2022-11-08 12:55:45 -08:00
Jarred Sumner
d925367cae
[bindings generator] Support cached values that do not correspond to properties and support call() functions
2022-11-07 00:51:36 -08:00
Jarred Sumner
280c45c269
Upgrade WebKit
2022-10-28 18:57:33 -07:00
Jarred Sumner
cdff2697ef
Implement sendText, sendBinary, publishText, publishBinary
2022-10-17 06:53:18 -07:00
Jarred Sumner
19cff80af8
More careful code generator
2022-10-15 22:49:06 -07:00
Jarred Sumner
35cbfa63a6
Add a way to update cached values from Zig
2022-10-15 02:57:28 -07:00
Jarred Sumner
a20d3eaebb
Support cache with same name applied to multiple getters
2022-10-10 20:58:19 -07:00
zhiyuan
36ec06493e
Fix fetch response redirected ( #1303 )
...
* fix: sync codegen
* fix: generate class script
* fix: sync codegen
* fix: add response redirected property
2022-10-08 22:36:33 -07:00
Jarred Sumner
a1b4dc42cb
Implement reportExtraMemoryVisited and reportExtraMemoryAllocated in bindings
2022-09-28 14:36:44 -07:00
Jarred Sumner
5ae5125919
size estimatoor
2022-09-28 11:10:20 -07:00
Jarred Sumner
71ea4a2c9b
Fix several bugs with Request body streaming + store small response bodies without an extra memory allocation
2022-09-28 00:11:15 -07:00
Jarred Sumner
2c1926993b
Faster Blob + begin to implement FileSink
2022-09-22 23:45:02 -07:00
Jarred Sumner
af5c4dedca
Update WebKit ( #1165 )
...
* Update WebKit
* Fix `DataView` and non-8 bit sized typed arrays with TextDecoder
* New WebKit
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2022-08-27 23:46:05 -07:00
Jarred Sumner
0f45386673
Make Request, Response and TextDecoder not read-only
2022-08-18 23:21:52 -07:00
Jarred Sumner
e3c2a95e5f
Faster TextDecoder
2022-08-18 19:06:29 -07:00
Jarred Sumner
9eaed7cec7
Fix missing prototype property on generated classes
2022-08-18 00:56:36 -07:00
Jarred Sumner
eb5b298bc1
Update generate-classes.ts
2022-08-18 00:22:29 -07:00
Jarred Sumner
1d2b52d15c
Move the crypto hashers to the new bindings
2022-08-17 21:38:16 -07:00
Jarred Sumner
c720bdc324
Move around some things
2022-08-17 19:26:10 -07:00