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

Feat/typedefs #36

Merged
merged 23 commits into from
Jun 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
fbc72fb
refactor(lib/*/api.js): remove lib_api_typed import
May 31, 2024
ac90ac1
feat(lib/*/api.js): added types to exported constants
May 31, 2024
17131a7
refactor(lib/*/api.js): cast structs as const
May 31, 2024
d70bf18
feat(lib/*/api.js): added types to exported mac, linux platform const…
May 31, 2024
30c0dbd
feat(lib/*/api.js): added optional params, prep for type generation
Jun 12, 2024
bce012f
feat(init, type): added type generation "lo type <config.js path>"
Jun 12, 2024
0e4ca57
feat(lib/types.js): added to base and lo runtime configs
Jun 12, 2024
1a53b9e
feat(init, type): improve generated readme
Jun 12, 2024
8dab870
fix(init, type): reduce apis.all.d.ts file writes
Jun 12, 2024
cd0cee8
fix(makefile): disable weird c++20 template-id-cdtor warning
Jun 24, 2024
4268c8c
refactor: remove generated *.d.ts files
Jun 24, 2024
5b43f43
feat(types): add global.gc, global.Iterator types
Jun 24, 2024
75d3f85
fix(makefile): revert template-id-cdtor warning fix
lostrepo Jun 24, 2024
be39a27
refactor(lib/types.js): put lib/globals.d.ts into globals.d.ts
Jun 29, 2024
0eca332
fix(lib/build.js): remove -Wno-template-id-cdtor
Jun 29, 2024
6c3a898
feat(lib/libssl.js): expose get_libssl/get_boringssl for proper type …
Jun 29, 2024
436a06f
feat(lib/net.js): add types, remove hardcoded consts
Jun 29, 2024
c8877c9
feat(lib/loop.js): add OS support to types
Jun 29, 2024
5b13363
feat(lib/timer.js): added types
Jun 29, 2024
a2087d4
feat(lib/[inflate|untar|zlib].js): added types
Jun 29, 2024
cca7fe2
fix(lib/hash.js): removed native lib prop override
Jun 29, 2024
cb6651f
feat(lib/[fs|thread].js): added types
Jun 29, 2024
6faf8e5
feat(lib/[udp|system].js): added types, a bit of refactoring
Jun 29, 2024
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ lib/bestlines/bestline.c
lib/bestlines/bestline.h
lib/pico/picohttpparser.c
lib/pico/picohttpparser.h
globals.d.ts
lib/globals.d.ts
lib/apis.all.d.ts
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ else
$(CC) ${CARGS} builtins.S -o builtins.o
endif

${RUNTIME}.o: ## compile runtime into an object file
${RUNTIME}.o: ## compile runtime into an object file
$(CXX) ${CCARGS} ${OPT} -DRUNTIME='"${RUNTIME}"' -DVERSION='"${VERSION}"' ${V8_FLAGS} -I./v8 -I./v8/include ${WARN} ${RUNTIME}.cc

${RUNTIME}: v8/include v8/libv8_monolith.a main.js ${BINDINGS} builtins.o main.o ${RUNTIME}.o ## link the runtime for linux/macos
Expand Down Expand Up @@ -141,6 +141,7 @@ else
rm -f lib/**/*.o
rm -f lib/**/*.so
rm -f ${RUNTIME}
rm -f globals.d.ts
endif

cleanall:
Expand Down
5 changes: 0 additions & 5 deletions builtins.S
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,3 @@ __binary_runtimes_lo_config_js_start:
.incbin "runtimes/lo.config.js"
.global __binary_runtimes_lo_config_js_end
__binary_runtimes_lo_config_js_end:
.global __binary_globals_d_ts_start
__binary_globals_d_ts_start:
.incbin "globals.d.ts"
.global __binary_globals_d_ts_end
__binary_globals_d_ts_end:
5 changes: 0 additions & 5 deletions builtins_linux.S
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,4 @@ _binary_runtimes_lo_config_js_start:
.incbin "runtimes/lo.config.js"
.global _binary_runtimes_lo_config_js_end
_binary_runtimes_lo_config_js_end:
.global _binary_globals_d_ts_start
_binary_globals_d_ts_start:
.incbin "globals.d.ts"
.global _binary_globals_d_ts_end
_binary_globals_d_ts_end:
.section .note.GNU-stack,"",@progbits
Loading
Loading