Dylan Conway
ffe6bb0b7f
fix decorator tests
2023-10-03 13:50:36 -07:00
Ai Hoshino
b7982ac131
fix(blob): Add the current offset to the new blob. ( #6259 )
...
Close : #6252
2023-10-03 12:03:57 -07:00
Ashcon Partovi
60e7ae9aee
Remove old package
2023-10-03 12:02:28 -07:00
Ashcon Partovi
86e4f72f00
Fix permissions for Github Actions
2023-10-03 12:02:15 -07:00
axel escalada
0ca9a7889a
Fix bunx command for github package #5974 ( #6042 )
...
* fix bunx command for github package
* refactor fmt package to use it when the path is seted
* use labeled block to assign const instead of use 'undefined'
2023-10-03 11:49:24 -07:00
WingLim
476fa4deda
feat(encoding): support BOM detection with test passed ( #6074 )
2023-10-03 10:28:59 -07:00
JS Park
4f1710d2d6
docs: update typescript.md ( #6222 )
...
Fix inconsistent results from `bun init`.
2023-10-03 09:12:37 -07:00
John Beene
1acc8191f5
Docs: Update context.md ( #6256 )
...
Use token from cookies, not from ws.data
2023-10-03 09:11:52 -07:00
Mathias Wulff
0ee04261b9
Add license information to package.json ( #6255 )
2023-10-03 09:11:02 -07:00
Dylan Conway
745b6b94ee
Store workspace package versions ( #6258 )
...
* Store workspace package versions in the lockfile
* more logging
* wip
* keep information from workspace name array and cache
* hash key
* remove cache, compare workspaces with initially loaded
* uncomment sort
* remove comments
* remove allocation
* package json
* test `bun add <package>` without workspace prefix
* Update test/cli/install/bun-install.test.ts
Co-authored-by: Markus Staab <maggus.staab@googlemail.com >
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Markus Staab <maggus.staab@googlemail.com >
bun-v1.0.4
2023-10-03 02:17:21 -07:00
Colin McDonnell
47651f321a
Update ws example
2023-10-02 19:02:27 -07:00
Jarred Sumner
b444c0b98d
Set fetch timeout to 5 minutes ( #6217 )
...
* Increase timeouts
* Update uws.zig
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-10-02 18:01:59 -07:00
Ashcon Partovi
15880308b7
Fix bun install reading Github API from wrong environment variable ( #6247 )
...
* Fix `bun install` reading Github API from wrong environment variable
* Update src/install/install.zig
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
2023-10-02 18:00:17 -07:00
Jarred Sumner
89bb526e14
Warn at start when using AVX build of Bun without AVX support ( #6242 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-10-02 17:59:38 -07:00
Colin McDonnell
63a00791fa
Update development and document env var expansion
2023-10-02 17:52:29 -07:00
Cícero Santos
a6af1c89b9
Update development.md ( #6221 )
2023-10-02 15:18:55 -07:00
Colin McDonnell
08bf8b8ad1
Add Bun.TOML to types ( #6161 )
2023-10-02 15:18:29 -07:00
Colin McDonnell
0c3c57cc35
Add dns.reverse and dns.getServers to types
2023-10-02 14:11:55 -07:00
Ashcon Partovi
237a5ada47
Fix npm tag for canary bun-types
2023-10-02 13:56:14 -07:00
Corné Dorrestijn
0a2d490bf8
Added the fileExtensions field to file-system-router.md ( #6231 )
2023-10-02 02:42:17 -07:00
Jarred Sumner
ea956e58e9
more logging
2023-10-02 02:38:47 -07:00
Jarred Sumner
46b5069c40
Slightly reduce number of open file descriptors in bun install ( #6219 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-10-01 16:55:05 -07:00
Ai Hoshino
f7618aba20
fix(node:process): fix return value of process.kill ( #6207 )
2023-10-01 12:55:38 -07:00
Jarred Sumner
e020ecec15
Fix bug causing "Connection Refused" errors ( #6206 )
...
* Loop through the return values of getaddrinfo
* Remove incorrect assertion
* Remove extra check
* Remove extra check
* Update bsd.c
* More consistent
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-30 22:59:42 -07:00
Jarred Sumner
8775d37559
Fix regression
2023-09-30 17:16:06 -07:00
Jarred Sumner
54d25b8f6b
Update cp.test.ts
2023-09-30 17:09:27 -07:00
Jarred Sumner
960922bba9
Add title
2023-09-30 17:09:12 -07:00
Jarred Sumner
c21be13be4
tweak github actions ( #6195 )
...
* Discord comments
* better
* better
* actions
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-30 02:50:38 -07:00
Jarred Sumner
c0b758ad45
Bump
2023-09-29 23:44:57 -07:00
Jarred Sumner
d65fdb6035
Fix hang in bun install ( #6192 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-29 20:45:51 -07:00
Jarred Sumner
a97847a494
Implement virtual module support in Bun.plugin ( #6167 )
...
* Add support for `build.module` in `Bun.plugin`
* Another test
* Update docs
* Update isBuiltinModule.cpp
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
Co-authored-by: Dylan Conway <dylan.conway567@gmail.com >
2023-09-29 16:34:20 -07:00
dave caruso
eddb0078b5
fix(runtime): followup for server.requestIP ( #6185 )
...
* fix(runtime): followup for `server.requestIP`
* oops
* yeah
* sure
* Update src/deps/libuwsockets.cpp
* Update Dockerfile
* lol
---------
Co-authored-by: Jarred Sumner <jarred@jarredsumner.com >
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-29 16:17:54 -07:00
Liz
fa7d7bd1e4
fix: don't set default request method when creating a Request ( #6154 )
...
In the case of creating a Request with the parameters `(Request, object)`,
there was a bug that method and headers are set from the default created by
the init rather then the already present value from the request param.
This is because for a to me unknown reason the order in which the parameters
are processed is reversed.
This fixes that by adding a check which stops the defaults from being set,
unless they are explicitly passed.
Fixes: https://github.com/oven-sh/bun/issues/6144
2023-09-29 16:13:49 -07:00
dave caruso
72bdd380af
add Socket.prototype; lol ( #5945 )
2023-09-29 15:42:06 -07:00
dave caruso
10bee33909
fix(resolver): support encoded file urls ( #5766 )
...
* start working on this
* it works now
* better implementation imo
* yippee
* more tests and better unrefing
* fix leak?
2023-09-29 14:58:39 -07:00
dave caruso
6afa78120a
feat(runtime): implement server.requestIp + node:http socket.address() ( #6165 )
...
* [server] requestIp and AnyRequestContext
Changed Request.uws_request to the new AnyRequestContext. This
allows grabbing the IP from a Request. Unfinished.
* [server] basic `requestIp` implementation
Currently using uws's requestIpAsText, which always returns a ipv6
string. We should return a `SocketAddress` object to the user instead,
which will contain the formatted address string and what type it is.
We'll have to use requestIpAsBinary and parse that ourselves.
* TypeScript docs, use `bun.String`, return `undefined` instead of `null`
if we can't get the ip.
* binary address formatting
* uws getRemoteAddress binding
* remove dead code
* working
* final touches✨
* I will abide by the results of this poll.
---------
Co-authored-by: Parzival-3141 <29632054+Parzival-3141@users.noreply.github.com >
2023-09-29 03:39:26 -07:00
Jarred Sumner
6514dcf4cb
Fixes #6053 ( #6162 )
...
Fixes #6053
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-29 00:03:58 -07:00
Jarred Sumner
d3caf37b49
Upgrade to latest Node.js version ( #6158 )
...
* Upgrade to latest reported Node.js version
* Upgrade
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-28 23:20:26 -07:00
Devin Johw
315125c43a
docs (runtime): the order of checking files when using bare impoort ( #5919 )
2023-09-28 22:13:52 -07:00
Dylan Conway
f6fbf86910
fix decorator tests
2023-09-28 19:18:36 -07:00
axel escalada
e1117c6ae5
Add local tarball install #5812 ( #6118 )
...
* check if the value passed for add command is a local tarball and install it, test for local tarball
* use bunExe()
* use absolute path to copy tarball
* fmt ts
2023-09-28 19:07:51 -07:00
Jarred Sumner
4bdec01619
Reduce memory usage of HTTP server ( #6135 )
...
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com >
2023-09-28 19:06:04 -07:00
dave caruso
2e8d9d4607
Revert WebKit submodule to where it should be
2023-09-28 18:01:14 -07:00
Colin McDonnell
640b0b4df9
Improve docs
2023-09-28 14:14:44 -07:00
Alba Silvente Fuentes
16be721d8a
docs: update image astro.md ( #6149 )
2023-09-28 12:52:00 -07:00
Colin McDonnell
26794680dd
Update prisma
2023-09-28 11:32:46 -07:00
Colin McDonnell
5fedc8bd6c
Revert "Update prisma guide"
...
This reverts commit e62fef6765 .
2023-09-28 11:31:47 -07:00
Colin McDonnell
e62fef6765
Update prisma guide
2023-09-28 11:27:08 -07:00
dave caruso
387f1260c9
Get Next.js Pages Router to work ( #6095 )
...
* hell
* make it so bun-debug-src
* teag
* wild
* yippee
* fas
* fix async hooks assertions
* yap
* yeah that's wild
* aa
* a
* increase time allowed
* so trivial
2023-09-28 03:53:24 -07:00
jhmaster
e60b3607c1
Complete rework of the majority of node:util, primarily util.inspect ( #4493 )
...
* 1st revision of new util.inspect impl. (not done)
* fix util.types.isArrayBuffer
* fix some utl tests and bugs
* fix node:tty missing primordials
* fix utl stackoverflow handling & some tests
* narrow down diff. context test
* util.inspect indirect circulars optimization
* temp workaround for buggy is...Function checks
* impl. Map/Set/Iterator entries inspection
* fix bigint & symbol objects inspection
* error inspection fixes
* misc util tests stuff
* inline getExternalValue stub
* leftovers
* util.inspect promise internals
* run bun fmt
* commit make js changes
* cut out unnecessary utl files
* reorganize utl folder structure
* remove browserify buffer check
* Try to revert git messing up uws somehow
This reverts commit 2c27e16e7d .
* commit src/js/out files again
* redo this edit too
* refresh js/out files
* Removed uws submodule
* tidy up
* unused primordials
* run fmt
---------
Co-authored-by: dave caruso <me@paperdave.net >
2023-09-27 23:51:49 -07:00