Ashcon Partovi
99485bec4c
Fix tests that pass but generate annotation
2023-06-09 05:53:23 -07:00
Ashcon Partovi
0eb5103642
Fix missing JSC.markBinding
2023-06-09 05:40:44 -07:00
James Liu
edd03341b1
docs: add missing right parenthesis in example code ( #3245 )
...
add missing right parenthesis in example code in `HTTP server` section
2023-06-09 05:20:37 -07:00
Alex Lam S.L
1d2f06b37e
replace sudo usage in GitHub Actions ( #3254 )
2023-06-09 11:33:22 +03:00
dave caruso
870e5ac1dc
improve stream types ( #3240 )
2023-06-07 14:45:14 -07:00
Jarred Sumner
7e296a1adc
[breaking][bun:sqlite] .values() returns [] instead of null for queries returning 0 results ( #3219 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-06 23:52:23 -07:00
Jarred Sumner
b9a705f84b
add buffer label ( #3220 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-06 23:51:05 -07:00
Colin McDonnell
d265ed80d2
Docs for Bun.password and ws publish ( #3227 )
...
* Update websocket docs & jsdoc
* Document Bun.password
* Update hash encoding docs
* Fix typos
* Add info about user-specific data in ws
* Update outdated websocket jsdoc
* Replace usages of req.url
* Remove log
2023-06-06 23:50:43 -07:00
dave caruso
fa3cfd34cb
yeah ( #3229 )
2023-06-06 23:48:13 -07:00
Colin McDonnell
bcd67c3455
Bun.passwordSync -> Bun.password.{method}Sync ( #3228 )
...
* Bun.passwordSync -> Bun.password.{method}Sync
* Update jsdoc
* Updates
2023-06-06 23:44:40 -07:00
Jarred Sumner
ec71e7afe4
Rename bun-link-lld-debug to link
2023-06-05 18:14:44 -07:00
dave caruso
17bca62df1
add a test for lodash-es ( #3217 )
...
* add bundling tests for lodash-es
* add isBuffer tests
2023-06-05 17:38:03 -07:00
Jarred Sumner
0c11762c31
[node:vm] Fix crash when new ArrayBuffer() is returned
2023-06-05 17:17:48 -07:00
Dylan Conway
fe7d5357d8
allow v flag in regexp literal ( #3213 )
...
* add v to possible regexp flags
* alphabetical
2023-06-05 13:33:02 -07:00
Dylan Conway
568f170e12
[transpiler] Fix new length for raw template contents ( #3215 )
...
* use correct length for raw template contents
* tests for raw template contents
2023-06-05 12:55:56 -07:00
Jarred Sumner
c87d65856c
[Inspector] Introduce inspector: true in Bun.serve()
...
This exposes the WebKit inspector debugger protocol over WebSockets at the endpoint `/bun:inspect` when `Bun.serve()`.
To enable, pass:
```js
Bun.serve({inspector: true, development: true, fetch(req){ /* rest of params *... });
```
Both `development` and `inspector` must be true, as this is very security sensitive to expose publicly.
2023-06-05 04:31:13 -07:00
Jarred Sumner
9b996e702e
Implement Bun.password and Bun.passwordSync ( #3204 )
...
* Implement `Bun.password.{verify, hash}` and `Bun.passwordSync.{verify, hash}`
* flip the booleans
* delete unused
* Add `cost` for `"bcrypt"`, add `"memoryCost"` and `"timeCost'` for argon2, use SHA512
* Update bun.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-04 18:20:04 -07:00
Dylan Conway
2cb1376a93
removeAllListeners return this (#3208 )
...
* return this in `removeAllListeners`
* move `UNUSED_PARAM` for used params
2023-06-04 18:19:41 -07:00
Jarred Sumner
1f3da24fe0
[Transpiler] Fix normalizing \r\n in template string literals ( #3209 )
2023-06-04 18:07:38 -07:00
Jarred Sumner
c4e31551f3
Update .gitattributes
2023-06-03 17:44:28 -07:00
dave caruso
52d11ce845
Add test case ( #3186 )
2023-06-03 16:38:49 -07:00
dave caruso
7d8b6d487b
make hardcoded -> make esm + document needing bun to build bun ( #3188 )
2023-06-03 16:38:33 -07:00
Jarred Sumner
583c6d3644
Bump
2023-06-03 16:37:53 -07:00
Ciro Spaciari
aabb0b77ce
[tests] prisma tests ( #3197 )
2023-06-03 15:04:19 -07:00
Jarred Sumner
59d7c47e3f
Fix crash with path parse in win32 ( #3187 )
...
* Update CommonJSModuleRecord.cpp
* smaller
* [node:path] Fix crash, mark TODO
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
bun-v0.6.7
2023-06-03 00:14:27 -07:00
Dylan Conway
21bc3a9c39
[bundler] fix json imports, undo some todos
2023-06-02 22:44:19 -07:00
dave caruso
cfd73cec81
fixes with hardcoded modules ( #3182 )
...
* fixes with hardcoded modules
* add make hardcoded to make dev
* adjust this message
* remove debugging logs
* this
* restore2
2023-06-02 21:36:05 -07:00
Dylan Conway
3e437a6ae0
check package name length in shouldUnwrapRequire() ( #3183 )
...
* make sure length is equal
* add and use `indexEqualAny`
2023-06-02 20:45:48 -07:00
Dylan Conway
d8e7436db0
use NODE_ENV for react-jsx or react-jsxdev ( #3184 )
2023-06-02 20:35:00 -07:00
dave caruso
f798a0cfe8
fix readableStreamToArrayBuffer ( #3181 )
...
* fix discord.js again
* remove one of the async hooks warnings
* clarify hardcoded modules docs
2023-06-02 19:03:16 -07:00
Ciro Spaciari
51846d0277
[napi] some fixes for prisma ( #3176 )
...
* patch create object, so it can be used on wrap
* cleanup
* cleanup
* dont override napiRef
* make wrap strong ref
* workaround tests
* remove work around
2023-06-02 17:56:16 -07:00
Colin McDonnell
c4f237572d
Update macro/test docs ( #3180 )
...
* Add test and fix plugin type
* Update docs and config pages
2023-06-02 17:43:51 -07:00
Dylan Conway
e20e695775
continue if import is standalone ( #3178 )
2023-06-02 17:07:16 -07:00
Jarred Sumner
132ab63a32
Add comment
2023-06-02 16:39:16 -07:00
Ashcon Partovi
bfd315fc72
Support NO_COLOR environment variable ( #3055 )
2023-06-02 14:24:16 -07:00
Jarred Sumner
72c2123e07
Maybe we don't need to do this anymore? ( #3169 )
2023-06-02 14:22:39 -07:00
Colin McDonnell
1f7d62bfd5
Support NodeJS.ProcessEnv
2023-06-02 12:49:31 -07:00
Jozef Steinhübl
4d1c900cac
types: expose Bun.Env ( #3111 )
...
* expose Bun.Env
* export bun.Env
* fix: use import instead namespace access
* fix(child_process): use import
* tests(env): use module instead namespace
2023-06-02 12:48:19 -07:00
Jarred Sumner
97c522517c
Fixes #3161 ( #3174 )
...
* Fixes #3161
* Fix the error message
* woops
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-02 04:01:25 -07:00
Ashcon Partovi
4c6245b2e5
Add concurrency to workflows, enable cancel-in-progress
2023-06-01 18:38:40 -07:00
Ashcon Partovi
b21a58e564
Fix github annotation when using inspect() ( #3166 )
2023-06-01 18:25:06 -07:00
dave caruso
4df1d37ddc
Bundle and minify .exports.js files. ( #3036 )
...
* move all exports.js into src/js
* finalize the sort of this
* and it works
* add test.ts to gitignore
* okay
* convert some to ts just to show
* finish up
* fixup makefile
* minify syntax in dev
* finish rebase
* dont minify all modules
* merge
* finish rebase merge
* flaky test that hangs
2023-06-01 18:16:47 -07:00
Ashcon Partovi
03ffd1c732
Disable typecheck workflow for now
2023-06-01 18:04:45 -07:00
Jarred Sumner
3e84f18cc0
Implement __dirname and __filename, allow direct eval in CommonJS ( #3164 )
...
* Implement `__dirname` and `__filename`, allow direct eval in CommonJS
* Fixup dirname and add test
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-01 18:04:09 -07:00
Jarred Sumner
42606d6aed
Rename ptr to _unsafe_ptr_do_not_use ( #3163 )
...
* Rename `ptr` to `_unsafe_ptr_do_not_use`
* Fixup
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-06-01 18:02:41 -07:00
Derrick Farris
c366b62160
Update macros.md ( #3165 )
...
Fix a repeated "for"
2023-06-01 17:25:28 -07:00
dave caruso
42d8b7183c
random fixes that help vite/sveltekit ( #3140 )
...
* existsSync with invalid paths should return false
* partially support file urls (does not do percent encoding)
* add utf16 support for Path.isAbsoluteString
* Update src/resolver/resolver.zig
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
* fixups
* revert
* prettier format
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-06-01 16:48:37 -07:00
Ciro Spaciari
f9809f0044
[napi] fix thread safe function callback ( #3162 )
...
* fixup
* add debug log message to event loop unexpected tag
* fix fmt
2023-06-01 15:19:06 -07:00
dave caruso
4378ef8e97
mark currently known test fails as .todo ( #3052 )
...
* start this
* commit
* mark all failing tests as todo
* fasdfad
* bundler tests
* tests
* adjust failing tests to todo
* comment out some more tests
* png as test
2023-06-01 14:37:35 -07:00
dave caruso
2c1694f63b
Fix streams breaking on reverted EventEmitter / Make Discord.js work ( #2913 )
...
* Revert "Revert "use a lazyily initialized stream for `node:crypto` `createHash` (#2652 )""
This reverts commit 613bb4822e .
* Revert "Revert "implement `node:events` in javascript (#2604 )""
This reverts commit a4d0a1961a .
* oops
* fix entrypoints stuff
* fix hash copy
* use native events for node streams and crypto
* requested changes
* oops
* make discord.js work
* fix webkit hash
* headers tojson
2023-06-01 14:31:36 -07:00