Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to latest Zig #1610

Merged
merged 73 commits into from
Dec 28, 2022
Merged
Changes from 1 commit
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
72c8657
@min and @max
Jarred-Sumner Nov 29, 2022
b00d56a
builtins and some trivial ones
Jarred-Sumner Nov 29, 2022
0410789
Most of them
Jarred-Sumner Nov 29, 2022
6c4c424
more
Jarred-Sumner Nov 29, 2022
223515e
more!
Jarred-Sumner Nov 29, 2022
ddef776
More Progress
Jarred-Sumner Nov 29, 2022
8e81863
wip
Jarred-Sumner Nov 29, 2022
c6f38a9
Update tagged_pointer.zig
Jarred-Sumner Nov 29, 2022
0c482f6
Update http_client_async.zig
Jarred-Sumner Nov 29, 2022
a46f6db
Most of the iterable dir changes
Jarred-Sumner Nov 30, 2022
ebdab10
alright
Jarred-Sumner Nov 30, 2022
9c4c28e
Remove usages of deprecated formatters
Jarred-Sumner Nov 30, 2022
35424f2
:camera:
Jarred-Sumner Dec 8, 2022
c25950c
Merge branch 'main' into jarred/attempt-upgrade
Jarred-Sumner Dec 8, 2022
e58f769
fmt
Jarred-Sumner Dec 8, 2022
942ea16
Update shimmer.zig
Jarred-Sumner Dec 8, 2022
f89c55b
wip
Jarred-Sumner Dec 8, 2022
16f779c
wip
Jarred-Sumner Dec 8, 2022
77fcdac
wip
Jarred-Sumner Dec 8, 2022
7de388e
progress
Vexu Dec 19, 2022
8846e7f
more
Vexu Dec 19, 2022
19b0843
Merge branch 'main' into jarred/attempt-upgrade
Jarred-Sumner Dec 19, 2022
e007aa6
Merge branch 'main' into jarred/attempt-upgrade
Jarred-Sumner Dec 23, 2022
b48992c
Latest
Jarred-Sumner Dec 23, 2022
70ad718
stuck on error
Jarred-Sumner Dec 23, 2022
cb02d62
latest
Jarred-Sumner Dec 24, 2022
3acdfe3
Merge branch 'main' into jarred/attempt-upgrade
Jarred-Sumner Dec 24, 2022
9825aff
workaround stage2
Jarred-Sumner Dec 24, 2022
508f61b
wip
Jarred-Sumner Dec 24, 2022
12b5b7f
Update string_immutable.zig
Jarred-Sumner Dec 24, 2022
3368eed
wip
Jarred-Sumner Dec 25, 2022
26ec2ea
Migrate `Dirent` and `require("fs')` to use JSC<>Zig bindings
Jarred-Sumner Dec 25, 2022
2d7449d
Fix build errors
Jarred-Sumner Dec 25, 2022
b79ffac
Fixup most of the test failures
Jarred-Sumner Dec 25, 2022
52add73
Fix `make headers`
Jarred-Sumner Dec 26, 2022
a89029f
Fix "outside package path" error
Jarred-Sumner Dec 26, 2022
0341f91
Fixup aligned alloc
Jarred-Sumner Dec 26, 2022
0106b16
Add missing file
Jarred-Sumner Dec 26, 2022
45039a8
linux
Jarred-Sumner Dec 26, 2022
dd6b438
More linux fixes
Jarred-Sumner Dec 27, 2022
49c698e
use latest peechy
Jarred-Sumner Dec 27, 2022
ba7ae2d
Fix transpiler test failure
Jarred-Sumner Dec 27, 2022
407eeb2
Forgot about these
Jarred-Sumner Dec 27, 2022
d58d745
Fixup test failure
Jarred-Sumner Dec 27, 2022
40e3e67
Update node-timers.test.ts
Jarred-Sumner Dec 27, 2022
217771c
[node:htt] Fix `undefined is not an object` error
Jarred-Sumner Dec 27, 2022
dff7c69
Update http.exports.js
Jarred-Sumner Dec 27, 2022
259710b
Make this test less flaky
Jarred-Sumner Dec 27, 2022
07db129
fix hashes
Jarred-Sumner Dec 27, 2022
6ecd32c
Fix hex formatting and zls issues
Jarred-Sumner Dec 27, 2022
cda32d0
Download zig version
Jarred-Sumner Dec 27, 2022
da662ef
Update Dockerfile
Jarred-Sumner Dec 27, 2022
3138dde
Update Dockerfile
Jarred-Sumner Dec 27, 2022
12eb62f
Update uws
Jarred-Sumner Dec 27, 2022
d9d9158
Update Dockerfile
Jarred-Sumner Dec 27, 2022
f394462
Set llvm version
Jarred-Sumner Dec 27, 2022
c715c2e
Update README.md
Jarred-Sumner Dec 27, 2022
a1c78c3
Update uws
Jarred-Sumner Dec 27, 2022
b90c705
Update Dockerfile
Jarred-Sumner Dec 27, 2022
44d571d
Update io_linux.zig
Jarred-Sumner Dec 27, 2022
3a3a5f0
Update bun.zig
Jarred-Sumner Dec 27, 2022
d72a355
Log output
Jarred-Sumner Dec 27, 2022
4c504d9
workaround strange @cInclude error
Jarred-Sumner Dec 27, 2022
c5e03a1
Make ffi tests better
Jarred-Sumner Dec 27, 2022
a49f6af
Don't use cImport
Jarred-Sumner Dec 27, 2022
15ac345
Update c.zig
Jarred-Sumner Dec 27, 2022
edfc6b3
Update c-bindings.cpp
Jarred-Sumner Dec 27, 2022
2c39776
call setOutputDir
Jarred-Sumner Dec 27, 2022
5f33693
Update Dockerfile
Jarred-Sumner Dec 27, 2022
3180fa7
Use a longer name
Jarred-Sumner Dec 27, 2022
4f203c9
latest
Jarred-Sumner Dec 28, 2022
c8a9ab5
Merge branch 'main' into jarred/attempt-upgrade
Jarred-Sumner Dec 28, 2022
4bddb21
Update serve.test.ts
Jarred-Sumner Dec 28, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Forgot about these
  • Loading branch information
Jarred-Sumner committed Dec 27, 2022
commit 407eeb25a270483ea4fba3e7cf28859c5b56a49a
54 changes: 27 additions & 27 deletions src/node_fallbacks.zig
Original file line number Diff line number Diff line change
Expand Up @@ -5,34 +5,34 @@ const logger = @import("bun").logger;
const Fs = @import("./fs.zig");
const ComptimeStringMap = @import("./comptime_string_map.zig").ComptimeStringMap;

const assert_code: string = ("./node-fallbacks/out/assert.js");
const buffer_code: string = ("./node-fallbacks/out/buffer.js");
const console_code: string = ("./node-fallbacks/out/console.js");
const constants_code: string = ("./node-fallbacks/out/constants.js");
const crypto_code: string = ("./node-fallbacks/out/crypto.js");
const domain_code: string = ("./node-fallbacks/out/domain.js");
const events_code: string = ("./node-fallbacks/out/events.js");
const http_code: string = ("./node-fallbacks/out/http.js");
const https_code: string = ("./node-fallbacks/out/https.js");
const net_code: string = ("./node-fallbacks/out/net.js");
const os_code: string = ("./node-fallbacks/out/os.js");
const path_code: string = ("./node-fallbacks/out/path.js");
const process_code: string = ("./node-fallbacks/out/process.js");
const punycode_code: string = ("./node-fallbacks/out/punycode.js");
const querystring_code: string = ("./node-fallbacks/out/querystring.js");
const stream_code: string = ("./node-fallbacks/out/stream.js");
const string_decoder_code: string = ("./node-fallbacks/out/string_decoder.js");
const sys_code: string = ("./node-fallbacks/out/sys.js");
const timers_code: string = ("./node-fallbacks/out/timers.js");
const tty_code: string = ("./node-fallbacks/out/tty.js");
const url_code: string = ("./node-fallbacks/out/url.js");
const util_code: string = ("./node-fallbacks/out/util.js");
const zlib_code: string = ("./node-fallbacks/out/zlib.js");
const supports_color_code: string = ("./node-fallbacks/out/supports-color.js");
const assert_code: string = @embedFile("./node-fallbacks/out/assert.js");
const buffer_code: string = @embedFile("./node-fallbacks/out/buffer.js");
const console_code: string = @embedFile("./node-fallbacks/out/console.js");
const constants_code: string = @embedFile("./node-fallbacks/out/constants.js");
const crypto_code: string = @embedFile("./node-fallbacks/out/crypto.js");
const domain_code: string = @embedFile("./node-fallbacks/out/domain.js");
const events_code: string = @embedFile("./node-fallbacks/out/events.js");
const http_code: string = @embedFile("./node-fallbacks/out/http.js");
const https_code: string = @embedFile("./node-fallbacks/out/https.js");
const net_code: string = @embedFile("./node-fallbacks/out/net.js");
const os_code: string = @embedFile("./node-fallbacks/out/os.js");
const path_code: string = @embedFile("./node-fallbacks/out/path.js");
const process_code: string = @embedFile("./node-fallbacks/out/process.js");
const punycode_code: string = @embedFile("./node-fallbacks/out/punycode.js");
const querystring_code: string = @embedFile("./node-fallbacks/out/querystring.js");
const stream_code: string = @embedFile("./node-fallbacks/out/stream.js");
const string_decoder_code: string = @embedFile("./node-fallbacks/out/string_decoder.js");
const sys_code: string = @embedFile("./node-fallbacks/out/sys.js");
const timers_code: string = @embedFile("./node-fallbacks/out/timers.js");
const tty_code: string = @embedFile("./node-fallbacks/out/tty.js");
const url_code: string = @embedFile("./node-fallbacks/out/url.js");
const util_code: string = @embedFile("./node-fallbacks/out/util.js");
const zlib_code: string = @embedFile("./node-fallbacks/out/zlib.js");
const supports_color_code: string = @embedFile("./node-fallbacks/out/supports-color.js");

const node_fetch_code: string = ("./node-fallbacks/out/node-fetch.js");
const isomorphic_fetch_code: string = ("./node-fallbacks/out/isomorphic-fetch.js");
const vercel_fetch_code: string = ("./node-fallbacks/out/@vercel_fetch.js");
const node_fetch_code: string = @embedFile("./node-fallbacks/out/node-fetch.js");
const isomorphic_fetch_code: string = @embedFile("./node-fallbacks/out/isomorphic-fetch.js");
const vercel_fetch_code: string = @embedFile("./node-fallbacks/out/@vercel_fetch.js");

const assert_import_path = "/bun-vfs/node_modules/assert/index.js";
const buffer_import_path = "/bun-vfs/node_modules/buffer/index.js";
Expand Down