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

test: Add new files and configurations for Nuxt Hacker News project #7469

Open
wants to merge 2,102 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2102 commits
Select commit Hold shift + click to select a range
4aab16b
Make expect().toThrow faster (#12494)
Jarred-Sumner Jul 11, 2024
f33309a
Revert "Nest test results under describe scopes (#12189)"
dylan-conway Jul 11, 2024
31923b5
fix(install): call `GetFinalPathNameByHandle` on cwd for postinstall …
dylan-conway Jul 11, 2024
d570af6
fix(fetch.tls.test) make test more reliable (#12499)
cirospaciari Jul 11, 2024
1a896dc
Rewrite js_ast.NewBaseStore (#12388)
Jarred-Sumner Jul 11, 2024
6c793a1
Bump
Jarred-Sumner Jul 11, 2024
5daf487
Upload .dSYM file in CI
Jarred-Sumner Jul 11, 2024
d6af8b9
Disable this debug log
Jarred-Sumner Jul 11, 2024
d7f553a
See if .dSYM will upload (#12502)
Jarred-Sumner Jul 11, 2024
5ffca13
Fix zig build error on Windows
Jarred-Sumner Jul 11, 2024
21eb5e3
Update README.md (#12512)
huseeiin Jul 11, 2024
06e3972
Fixes #12076 (#12504)
Jarred-Sumner Jul 11, 2024
6d9f5a0
make bun static link the c redistributable (#12521)
paperdave Jul 12, 2024
58a2bda
fix(server) fix abrupt stop (#12472)
cirospaciari Jul 12, 2024
771451c
Don't set mtune
Jarred-Sumner Jul 12, 2024
14c2b9b
Revert "Don't set mtune"
Jarred-Sumner Jul 12, 2024
193a673
Set the cpu model in the right place
Jarred-Sumner Jul 12, 2024
948a348
Set -march instead of -mcpu
Jarred-Sumner Jul 12, 2024
6b8e6ce
Use armv8-a
Jarred-Sumner Jul 12, 2024
a9fb8f5
Use armv8a+crc
Jarred-Sumner Jul 12, 2024
7ec72a4
Try icf=safe (#12524)
Jarred-Sumner Jul 12, 2024
f4aace9
make the windows binary smaller (#12523)
paperdave Jul 12, 2024
63a66c1
bump
dylan-conway Jul 13, 2024
7b150f0
bump
dylan-conway Jul 13, 2024
60d5dc3
Add packages option to remove all dependencies from bundle (#12562)
zpix1 Jul 14, 2024
975f0a8
Add documentation for mock.restore() (#12553)
mangs Jul 15, 2024
c45805f
Update launch.json
Jarred-Sumner Jul 15, 2024
338e12b
Make creating a BufferList (used in node:stream) slightly faster (#12…
Jarred-Sumner Jul 15, 2024
ac2eb8b
Replace some Identifier::fromString usages with vm->propertyNames (#1…
Jarred-Sumner Jul 15, 2024
9e7c469
Change .mjs to .mts during TypeScript module resolution (fixes #12471…
190n Jul 16, 2024
3d55760
fix .use_count integer underflow (#12584)
paperdave Jul 16, 2024
5c888d6
feat(bundler): implement non-isolated hashes (#12576)
paperdave Jul 16, 2024
eb5b398
Avoid stale reference to Body.Value when erroring (#12579)
Jarred-Sumner Jul 16, 2024
e355311
Prevent unref from hanging on uninitialized dgram socket (#12585)
190n Jul 16, 2024
c9f6479
fix(CryptoHasher) check of .empty/null/undefined in update (#12607)
cirospaciari Jul 16, 2024
bcf36bf
Accept undefined as explicit second argument for path.*.basename (#12…
190n Jul 16, 2024
8ea032f
fix(serve) fix abrupt close when downloading data (#12581)
cirospaciari Jul 16, 2024
261f9be
docs: close details block (#12533)
HibanaSama Jul 17, 2024
2e936ad
fix typescript namespace merging with functions and classes (#12610)
paperdave Jul 17, 2024
03afe2d
bundler: make `import()` calls visit the options object (#12617)
paperdave Jul 17, 2024
43b445b
Experiment: disable -fPIC and relro (#12582)
Jarred-Sumner Jul 17, 2024
5d267ec
Bump
Jarred-Sumner Jul 17, 2024
40d7d9f
Github actions
Jarred-Sumner Jul 17, 2024
1652c99
fix(setSystemTime) fix number parameter behavior (#12630)
cirospaciari Jul 18, 2024
1ba4968
fix(bundler): importing modules with trailing slash no longer uses a …
paperdave Jul 18, 2024
ac4100c
Bump internal bun versions
Jarred-Sumner Jul 18, 2024
b1898d3
Ensure undici primordials are pristine (#12635)
Jarred-Sumner Jul 18, 2024
22395e7
`node-fetch` polyfill shouldn't break when web globals are overriden …
Jarred-Sumner Jul 18, 2024
0bac569
build(windows): fix esbuild errors when bundling node-fallbacks (#12628)
HibanaSama Jul 18, 2024
7b71e0a
Fixes #2532 (#12633)
Jarred-Sumner Jul 18, 2024
4b1be37
Move dev dependencies to `"devDependencies"`
Jarred-Sumner Jul 18, 2024
444f4c8
Upload .dSYM file
Jarred-Sumner Jul 18, 2024
9e7802a
Fixes #12360 (#12364)
Jarred-Sumner Jul 18, 2024
4e6c10b
Check for file or directory
Jarred-Sumner Jul 18, 2024
8aa953c
Fix truncating in BigIntStats (#12643)
Jarred-Sumner Jul 20, 2024
e5b77ac
Fix crash in `bun exec cd` (#12676)
Jarred-Sumner Jul 20, 2024
2aab6b7
Deflake node-tls-connect test
Jarred-Sumner Jul 20, 2024
e8e072a
Deflake node-tls-connect test
Jarred-Sumner Jul 20, 2024
8861801
Fix BUN-2M9
Jarred-Sumner Jul 21, 2024
8617b69
Fix BUN-2M9, take two
Jarred-Sumner Jul 21, 2024
005012c
Fix expect.toThrow(expect.any()) matcher to correctly handle ExpectAn…
ippsav Jul 22, 2024
9726138
Experiment: disable C++ static destructors (#12652)
Jarred-Sumner Jul 22, 2024
a8fc3ad
Introduce `bun --fetch-preconnect <url> ./my-script.ts` (#12698)
Jarred-Sumner Jul 22, 2024
b05e9d8
Update fetch.md
Jarred-Sumner Jul 22, 2024
19fd3c9
Update fetch.md
Jarred-Sumner Jul 22, 2024
a5c54c9
Update fetch.md
Jarred-Sumner Jul 22, 2024
b594786
Update bun.d.ts (#12719)
huseeiin Jul 22, 2024
9a66a5a
Update fetch.md
Jarred-Sumner Jul 22, 2024
9481797
Update fetch.md
Jarred-Sumner Jul 22, 2024
ef5e5a9
Update fetch.md
Jarred-Sumner Jul 22, 2024
23a820a
Fix: test coverage node_modules exclusion in Windows (#12691)
dariushalipour Jul 22, 2024
c387e22
Bump minimum macOS build to 13.0
Jarred-Sumner Jul 22, 2024
9cf4d91
Don't set fuse-ld=lld in boringssl script
Jarred-Sumner Jul 22, 2024
9b7991e
try using LLVM 18 on macOS (#12727)
Jarred-Sumner Jul 23, 2024
daddbf1
Update WebKit
Jarred-Sumner Jul 23, 2024
0a49041
Add canary to cache key
Jarred-Sumner Jul 23, 2024
bfd1797
fix(bundler): ignore external rules for entrypoint (#12736)
zpix1 Jul 23, 2024
cbc849e
fix(http) timeout (#12728)
cirospaciari Jul 23, 2024
69ef72e
Fixes #12182 - update default port when server is created (#12201)
davidstevens37 Jul 23, 2024
f8bb0af
Fix assertion failure in bun build when entry point is a file loader …
Jarred-Sumner Jul 24, 2024
764a74b
fix(bundler): fix part liveness calculation (#12758)
paperdave Jul 24, 2024
204b8f3
Use one JSC::SourceProvider instead of 322 (#12761)
Jarred-Sumner Jul 24, 2024
7185eba
Fix alignment calculation in Zone.create function (#12748)
ippsav Jul 24, 2024
4a2626d
libdeflate (#12741)
Jarred-Sumner Jul 24, 2024
599a2e6
fix(bundler): become smarter with `__esm` wrappers (#12729)
paperdave Jul 24, 2024
4bc86e5
`napi_threadsafe_function` async tracker (#12780)
dylan-conway Jul 24, 2024
7f3bda8
Ensure LLVM 18 with Homebrew on macOS
Jarred-Sumner Jul 24, 2024
a1eb6cb
fix(napi): unref threadsafe functions on finalize (#12788)
dylan-conway Jul 25, 2024
d370d3a
fix crash in populateStackTrace() (#12793)
nektro Jul 25, 2024
0c0b626
JSValue.toFmt doesn't need a globalThis param because ConsoleObject.F…
nektro Jul 25, 2024
67315b9
node: fix observable value of process.exitCode (#12799)
nektro Jul 25, 2024
b034a70
fix memory lifetime of define expressions (#12784)
paperdave Jul 25, 2024
7e25cad
web-apis.md: make this list diff better; does not change presentation…
nektro Jul 25, 2024
4d9e1f8
Fixes #9555 (#12801)
Jarred-Sumner Jul 25, 2024
2fcb38d
replace JSValue .callWithThis with always explicit .call (#12789)
nektro Jul 25, 2024
0cb6acd
Slightly reduce pointer lookups in hot code path (#12802)
Jarred-Sumner Jul 25, 2024
e636105
fix(brotli): protect buffer jsvalues (#12800)
dylan-conway Jul 25, 2024
6afa830
Clean up some stack trace printing logic (#12791)
Jarred-Sumner Jul 25, 2024
4d2270f
Add a couple feature flags
Jarred-Sumner Jul 25, 2024
d32c813
fix regression test
dylan-conway Jul 25, 2024
39cbf32
node: more process.exitCode fixes (#12809)
nektro Jul 25, 2024
8b01213
Workaround for BUN-2WQ (#12806)
Jarred-Sumner Jul 25, 2024
141a4d1
Add malloc zones to heapStats() on macOS in debug builds (#12815)
Jarred-Sumner Jul 25, 2024
a41c28e
Clean up socket_async_http_abort_tracker after a lot of requests (#12…
Jarred-Sumner Jul 25, 2024
1eb291f
Use bun.New more (#12811)
Jarred-Sumner Jul 25, 2024
49eb51c
Retry on 5xx errors from npm registry (#12825)
Jarred-Sumner Jul 26, 2024
5f014b3
fix(bundler): dont tree-shake imported enum if inlined and used (#12826)
paperdave Jul 26, 2024
7da0b70
Fix crash when creating a new Worker with a numeric environment varia…
Jarred-Sumner Jul 26, 2024
d53aace
fix(brotli): protect and unprotect buffer values (#12829)
dylan-conway Jul 26, 2024
cb91086
fix(bun:test): make sure `test.each` doesn't return `.zero` (#12828)
dylan-conway Jul 26, 2024
5362325
Fix spacing of patch-command help (#12769)
eval Jul 26, 2024
3b9ace0
fixes relationship between process.kill and process._kill (#12792)
nektro Jul 26, 2024
a669d18
Fix [Symbol.dispose] on Bun.listen() & Bun.connect() + add types (#12…
Jarred-Sumner Jul 26, 2024
0401b29
Move `napi_new_instance` to c++ (#12658)
Jarred-Sumner Jul 26, 2024
9fb4186
cpp: missing uses of propertyNames (#12835)
nektro Jul 26, 2024
9764cc5
bindings: fix zig extern def of Bun__JSValue__deserialize (#12844)
nektro Jul 26, 2024
d4e3cf7
ipc: make IPCInstance.context void on windows instead of u0 (#12840)
nektro Jul 26, 2024
b857d1b
uws: tidy use of ssl intFromBool (#12839)
nektro Jul 26, 2024
17e037b
node:v8: expose DefaultDeserializer and DefaultSerializer exports (#1…
nektro Jul 26, 2024
ac5d712
bindings: better use of jsc api in Path_functionToNamespacedPath (#12…
nektro Jul 26, 2024
901df33
use .undefined literal instead of jsUndefined() call (#12834)
nektro Jul 26, 2024
12aeba9
launch.json: remove BUN_DEBUG_ALL=1 from 'bun run' (#12845)
nektro Jul 26, 2024
c3507f5
bump webkit (#12858)
dylan-conway Jul 26, 2024
817c8b1
Fix memory leak when printing any error's source code. (#12831)
paperdave Jul 26, 2024
fbfcbcb
Rename `JSC.Node.StringOrBuffer` -> `StringOrBuffer`
Jarred-Sumner Jul 26, 2024
ca9d8fc
When crash reporter is disabled also disable `resetSegfaultHanlder`
Jarred-Sumner Jul 26, 2024
fd85d86
Configure libcpp assert to avoid macOS 13.0 issue (#12860)
Jarred-Sumner Jul 26, 2024
e18abc2
fix(build): assertion failure when cross-compiling on windows (#12862)
dylan-conway Jul 27, 2024
74839b6
fix: make raiseIgnoringPanicHandler ignore the panic handler (#12578)
paperdave Jul 27, 2024
a515eba
ci: format: switch to mlugg/setup-zig (#12863)
nektro Jul 27, 2024
bef8c61
fix a bundler crash (#12864)
paperdave Jul 27, 2024
30f2584
Handle errors in node:http better (#12641)
Jarred-Sumner Jul 27, 2024
c3abfae
fix: check if we are crashing before exiting gracefully (#12865)
paperdave Jul 27, 2024
db48715
implement node:util.getSystemErrorName() (#12837)
nektro Jul 27, 2024
26425ae
Slightly better error.stack (#12861)
Jarred-Sumner Jul 27, 2024
807d9fa
Bump versions of things
Jarred-Sumner Jul 27, 2024
81c48ba
In debug builds on macOS, add malloc_zone_check when GC runs
Jarred-Sumner Jul 28, 2024
7cba136
textencoder: remove DOMJIT (#12868)
dylan-conway Jul 28, 2024
de3b6db
Fix memory leak in RuntimeTranspilerStore (#12900)
Jarred-Sumner Jul 28, 2024
e041f7e
Use typed allocators in more places (#12899)
Jarred-Sumner Jul 29, 2024
6c84610
fix(build): use specific version of lld for link on unix (#12907)
billywhizz Jul 29, 2024
566e5e9
Fix debug build issue
Jarred-Sumner Jul 29, 2024
2ba9feb
Add named allocator
Jarred-Sumner Jul 29, 2024
de30502
Add `BUN_FEATURE_FLAG_DISABLE_ASYNC_TRANSPILER` feature flag
Jarred-Sumner Jul 29, 2024
41f8d47
Fix various Windows build issues
Jarred-Sumner Jul 29, 2024
bc5d3a7
Enable concurrent transpiler on Windows (#12915)
Jarred-Sumner Jul 29, 2024
211073c
Remove some dynamic memory allocations in uWebSockets (#12897)
Jarred-Sumner Jul 29, 2024
a25bb06
Enable buildkite (#12653)
Electroid Jul 29, 2024
d662c4a
Allow creating release builds with 'RELEASE=1'
Electroid Jul 29, 2024
8ce7650
Only upload canary artifacts when the build is canary
Electroid Jul 29, 2024
b89276f
Fix release script
Electroid Jul 29, 2024
8da8a70
Fix release script, again
Electroid Jul 29, 2024
0a1546d
Fix syntax in env.ps1
Electroid Jul 29, 2024
6f16d4e
Fix flaky C++ build with missing submodules
Electroid Jul 29, 2024
64c23e3
fix: child_process test with specified shell for windows (#12926)
dariushalipour Jul 29, 2024
b78ddaa
Fix missing assert in release script
Electroid Jul 29, 2024
86955e8
Fixes #12910 (#12911)
Jarred-Sumner Jul 30, 2024
e5c98e9
Make the release script faster
Electroid Jul 30, 2024
dad0828
fix template addition folding 12904 (#12928)
paperdave Jul 30, 2024
a12e4f0
docs: Add hint for memory timeline in debugger (#12923)
m1212e Jul 30, 2024
d5caac2
test: rewrite "should call close" to use promise instead of done (#12…
nektro Jul 30, 2024
7410162
NodeError: add more and use them in child_process and dgram (#12929)
nektro Jul 30, 2024
7516610
windows: cleanup logging of NODE_CHANNEL_FD (#12930)
nektro Jul 30, 2024
e82c341
Attempt to fix 'spawn error' on Windows tests
Electroid Jul 30, 2024
c2152d8
Attempt to fix missing GitHub assets on release
Electroid Jul 30, 2024
9e4d681
Attempt to fix flaky build-deps on Windows
Electroid Jul 30, 2024
333be04
Attempt to fix flaky Windows builds
Electroid Jul 30, 2024
ac818dc
fix crash handler test failures (#12932)
paperdave Jul 30, 2024
e50e1c8
doc: fix incorrect documentation relating to the --define flag (#12952)
pythonmcpi Jul 31, 2024
5adba50
fix(bundler): put unwrapped cjs imports at top level for minifyrename…
paperdave Jul 31, 2024
59487b8
Deflake setInterval test
Jarred-Sumner Jul 31, 2024
81d3529
fix(tls/socket/fetch) shutdown fix + ref counted context (#12925)
cirospaciari Jul 31, 2024
1ebb42b
Use example.com as the test domain in a test
Jarred-Sumner Jul 31, 2024
039f5e1
Pass `--force` to git submodule update in CI
Jarred-Sumner Jul 31, 2024
8a4fbc2
change Body.Value.Error to not always allocate JSValues (#12955)
cirospaciari Jul 31, 2024
6e64b0c
Add a note
Jarred-Sumner Aug 1, 2024
f320d9a
fix(server) fix extra data sent in HTTP after sendfile + Date headers…
cirospaciari Aug 1, 2024
74382d7
Shrink the list of setTimeout/setInterval timers after awhile (#12957)
Jarred-Sumner Aug 1, 2024
57cdf7c
Fix a small memory leak when requiring CommonJS modules (#12984)
Jarred-Sumner Aug 1, 2024
3f4cdfe
escape windows in bun upgrade (#12985)
paperdave Aug 1, 2024
a5a8e4d
Fix memory leak when requiring or importing modules that get GC'd lat…
Jarred-Sumner Aug 1, 2024
a045721
Sort heapStats() object type counts (#12989)
Jarred-Sumner Aug 1, 2024
576a5b2
bundler: Add `--ignore-dce-annotations`, and other DCE annotation rel…
paperdave Aug 1, 2024
6817df6
fix test/package-json-lint.test.ts (#13010)
nektro Aug 1, 2024
8bf4f2e
test/package-json-lint.test.ts: add back test/package.json to suite (…
nektro Aug 1, 2024
adb7046
followup to recent feedback (#13009)
paperdave Aug 2, 2024
b4e139d
feat(bundler): inlining/dead-code-elimination for `import.meta.main` …
paperdave Aug 2, 2024
016808c
Add -Xclang -fno-c++-static-destructors on Windows (#13014)
Jarred-Sumner Aug 2, 2024
3db56bd
ci: disable BUN_ENABLE_CRASH_REPORTING (#13013)
nektro Aug 2, 2024
c8d0b9e
Disable LTO on Windows and macOS in BuildKite
Jarred-Sumner Aug 2, 2024
75d72d6
Deflake some build issues
Electroid Aug 2, 2024
63695a1
Fix ccache environment variable
Electroid Aug 2, 2024
e24f286
Fix LTO setting on Linux
Electroid Aug 2, 2024
9460922
Fix typo
Electroid Aug 2, 2024
88ee3a2
fix(bundler): printing e_commonjs_export_identifier when it got deopt…
paperdave Aug 2, 2024
e6c318c
Make zig cache dir relative to the cmake dir instead of global
Jarred-Sumner Aug 2, 2024
572acdb
Fix UDP socket tests on macOS 13. (#13022)
Jarred-Sumner Aug 2, 2024
ec728f6
Enable -Werror=int-conversion and -Werror=nonnull (#13025)
Jarred-Sumner Aug 2, 2024
d89399e
Upgrade WebKit (#12873)
Jarred-Sumner Aug 2, 2024
f394bb7
Fix debug builds on macOS
Electroid Aug 2, 2024
6cec193
fix(TextDecoder): decoding sequences starting with 192 or 193 (#13043)
dylan-conway Aug 3, 2024
8f583c5
Support async iterators in fs.promises.writeFile (#13044)
Jarred-Sumner Aug 3, 2024
0c3e511
fix(server/tls/streams) fix onReadFile, streams, avoid shutdown on fa…
cirospaciari Aug 3, 2024
91f0fee
properly propogate exit code if process onexit handler throws (#13058)
nektro Aug 3, 2024
1aa646a
fix (worker-eval): fail worker with source when eval = false (#13062)
billywhizz Aug 4, 2024
9a6cdf5
Document Bun supports Import Attributes and JSON modules syntax (#13074)
guest271314 Aug 4, 2024
2fb0ad7
Try to fix formatting in rendered guides document (#13077)
guest271314 Aug 4, 2024
62290e6
fix(build): retry webkit download on failure, resume download with cu…
billywhizz Aug 4, 2024
9b326a4
fix(server) (#13078)
cirospaciari Aug 5, 2024
0e6fd5a
Fix missing error log in Bun.serve (#13066)
Jarred-Sumner Aug 5, 2024
bffc819
Fixes #12894 (#13067)
Jarred-Sumner Aug 5, 2024
a83f0f3
Fixes #13049 (#13069)
Jarred-Sumner Aug 5, 2024
aa9660e
Fix missing source code preview in Next.js dev server (#13073)
Jarred-Sumner Aug 5, 2024
fdba7c3
Add nullability annotations (#13048)
Jarred-Sumner Aug 5, 2024
f5e79f2
Bump LLVM 18 in C++ lint
Jarred-Sumner Aug 5, 2024
4adbbe1
Enable more sanitizers and fix mimalloc debug configuration (#13086)
Jarred-Sumner Aug 5, 2024
b5f5ee6
Implement `aborted()` in node:util and getEventListeners in node:even…
Jarred-Sumner Aug 5, 2024
b7e5f46
Make signal.abort() from native code fast (#13064)
Jarred-Sumner Aug 5, 2024
b37a940
Potential fix for canary artifacts missing
Electroid Aug 6, 2024
b86138d
fix(bundler): use visited enum value (#13101)
paperdave Aug 6, 2024
1bd8cbe
Add test to #13082 and use `WTF_MAKE_FAST_ALLOCATED` (#13105)
Jarred-Sumner Aug 6, 2024
8c7951b
node:http: fix assertion when request() is given options.headers that…
nektro Aug 6, 2024
b82981f
fix(bundler): handle assigning to `exports` (#13119)
paperdave Aug 6, 2024
1e1a82a
Skip creating JSValue for abort when it's not necessary in more cases…
Jarred-Sumner Aug 6, 2024
3822998
Fix missing user-provided reason in fs.watch abort (#13118)
Jarred-Sumner Aug 6, 2024
bfe785f
feat: `bun build --compile --sourcemap` (#13047)
paperdave Aug 6, 2024
c1757ff
Add test for calling websocket server publish/send methods repeatedly…
Jarred-Sumner Aug 6, 2024
c640055
Fix S3 upload URL for canary assets
Electroid Aug 7, 2024
6ca909d
Make getIfPropertyExists binding safer (#13134)
Jarred-Sumner Aug 7, 2024
6748383
ci: build windows in ReleaseSafe (#13140)
nektro Aug 7, 2024
d880fdb
node:fs: fix assertion when chown is passed non-numbers (#13113)
nektro Aug 7, 2024
cc23b18
node:worker_threads: fix assertion when require is used with 'eval:tr…
nektro Aug 7, 2024
faed837
darwin: implement node:os.freemem() (#12870)
nektro Aug 7, 2024
d717ee6
Add `TextDecoderStream`, `TextEncoderStream`, and `TextDecoder.decode…
dylan-conway Aug 7, 2024
342f29b
Revert `TextDecoderStream` until next release (#13151)
Electroid Aug 7, 2024
1e00baa
refactor(fetch) make handshake less confuse (#13145)
cirospaciari Aug 7, 2024
cb4d159
implement NODE_EXTRA_CA_CERTS (#13150)
cirospaciari Aug 7, 2024
73aa03d
Better MDN reference (#13144)
huseeiin Aug 7, 2024
220e5bc
Rebuild dependencies if release build
Electroid Aug 7, 2024
d851b36
Potential fix for dependencies script
Electroid Aug 7, 2024
7d3dcd8
Skip canary release on release build
Electroid Aug 7, 2024
02df16f
Fix submodules script
Electroid Aug 7, 2024
ce6e077
crash_handler: support printing windows version (#13157)
nektro Aug 8, 2024
83d860d
Add bytes() to Blob (#13166)
huseeiin Aug 8, 2024
44a43dc
Add stale label
Jarred-Sumner Aug 8, 2024
60262d9
Update stale.yaml
Jarred-Sumner Aug 8, 2024
ceea6e9
Update stale.yaml
Jarred-Sumner Aug 8, 2024
56583c2
Update stale.yaml
Jarred-Sumner Aug 8, 2024
f05b4b9
Merge branch 'main' into test/imbios-integration-nuxt-hackernews
ImBIOS Aug 8, 2024
6430fe1
Merge branch 'main' into test/imbios-integration-nuxt-hackernews
ImBIOS Aug 8, 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
Binary file modified test/integration/next-pages/bun.lockb
Binary file not shown.
13 changes: 13 additions & 0 deletions test/integration/nuxt/hackernews/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# editorconfig.org
root = true

[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
7 changes: 7 additions & 0 deletions test/integration/nuxt/hackernews/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "@nuxt",
"rules": {
"vue/no-v-html": "off",
"vue/no-multiple-template-root": "off"
}
}
17 changes: 17 additions & 0 deletions test/integration/nuxt/hackernews/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.DS_Store
node_modules/
dist/
npm-debug.log
yarn-error.log
package-lock.json
.idea
*.iml
.nuxt
.vscode
.output

public/manifest*.json
public/sw.js
public/workbox-sw*.js*

CounterComponent.vue
66 changes: 66 additions & 0 deletions test/integration/nuxt/hackernews/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Nuxt Hacker News

Hacker News clone built with [Nuxt](https://nuxt.com).

<p align="center">
<a href="https://hn.nuxt.space" target="_blank">
<img width="1090" src="https://hn.nuxt.space/cover.jpg">
<br>
Live Demo
</a>
</p>

## Demo

https://hn.nuxt.space

> Hosted on [Vercel](https://vercel.com/): `npm run build`

To disable server-side render for a page, simply append `?csr` to the URL, example: https://hn.nuxt.space/news/1?csr

## Performance

- Lighthouse [100/100](https://pagespeed.web.dev/report?url=https%3A%2F%2Fhackernews-git-nuxt3-nuxt-js.vercel.app%2Fnews%2F1) (Slow 4G / Mobile Moto G4)
- Interactive: 1.4s
- Total Blocking Time: 30ms

## Features

- Server Side Rendering
- Vite-based hot module replacement (HMR) dev environment
- Deploys anywhere with zero config (Vercel, Netlify, Cloudflare, etc.) powered by [Nitro](https://github.com/unjs/nitro)
- Code Splitting
- Prefetch/Preload JS + DNS + Data

## Build Setup

**Requires Node.js 14+**

``` bash
# install dependencies
npm install # or yarn

# serve in dev mode, with hot reload at localhost:3000
npm run dev

# build for production (server-side rendering)
npm run build

# serve in production mode (server-side rendering)
npm start

# validate and fix with ESLint (with Prettier)
npm run lintfix
```

## Links

For the Nuxt 2 version, check out the [`nuxt2` branch](https://github.com/nuxt/hackernews/tree/nuxt2)

## License

MIT

## Credits

This repository is originally ported from [vue-hackernews-2.0](https://github.com/vuejs/vue-hackernews-2.0)
23 changes: 23 additions & 0 deletions test/integration/nuxt/hackernews/app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<script setup lang="ts">
useSeoMeta({
titleTemplate: 'Nuxt HN | %s',
description: 'HackerNews clone built with Nuxt.',
ogImage: 'https://hn.nuxt.space/cover.jpg',
ogImageAlt: 'Nuxt Hackernews',
twitterImage: 'https://hn.nuxt.space/cover.jpg',
twitterSite: '@nuxt_js',
twitterCreator: '@nuxt_js',
twitterCard: 'summary_large_image',
})
useHead({
link: [
{ rel: 'icon', type: 'image/svg+xml', href: '/logo.svg' }
]
})
</script>

<template>
<NuxtLayout>
<NuxtPage />
</NuxtLayout>
</template>
Binary file added test/integration/nuxt/hackernews/bun.lockb
Binary file not shown.
75 changes: 75 additions & 0 deletions test/integration/nuxt/hackernews/components/Counter1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<template>
<div id="counter-fixture" class="rounded-bl-full">
<p>Count A: {{ count }}</p>
<button class="inc" @click="increment">
+
</button>
<button class="dec" @click="decrement">
-
</button>
</div>
</template>

<script>
export default {
data() {
return {
count: 0,
};
},
mounted() {
console.log('counter a');
},
methods: {
increment() {
this.count++;
},
decrement() {
this.count--;
},
},
};
</script>

<style lang="postcss">
#counter-fixture {
color: #fff;
margin-left: 2rem;
padding: 10px;
border: 1px solid #ccc;
text-align: center;
}

#counter-fixture p {
margin: 10px 0;
font-size: 1.2rem;
}

button {
background-color: #4caf50;
/* Tailwind green */
color: white;
padding: 8px 15px;
margin: 5px;
border: none;
border-radius: 4px;
cursor: pointer;
}

button:hover {
background-color: #45a049;
}

button.dec {
background-color: #f44336;
/* Tailwind red */
}

button.dec:hover {
background-color: #d32f2f;
}

.rounded-bl-full {
border-bottom-left-radius: 9999px;
}
</style>
75 changes: 75 additions & 0 deletions test/integration/nuxt/hackernews/components/Counter2.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<template>
<div id="counter-fixture" class="rounded-br-full">
<p>Count B: {{ count }}</p>
<button class="inc" @click="increment">
+
</button>
<button class="dec" @click="decrement">
-
</button>
</div>
</template>

<script>
export default {
data() {
return {
count: 0,
};
},
mounted() {
console.log('counter b loaded');
},
methods: {
increment() {
this.count += 2;
},
decrement() {
this.count -= 2;
},
},
};
</script>

<style lang="postcss">
#counter-fixture {
color: #fff;
margin-left: 2rem;
padding: 10px;
border: 1px solid #ccc;
text-align: center;
}

#counter-fixture p {
margin: 10px 0;
font-size: 1.2rem;
}

button {
background-color: #4caf50;
/* Tailwind green */
color: white;
padding: 8px 15px;
margin: 5px;
border: none;
border-radius: 4px;
cursor: pointer;
}

button:hover {
background-color: #45a049;
}

button.dec {
background-color: #f44336;
/* Tailwind red */
}

button.dec:hover {
background-color: #d32f2f;
}

.rounded-bl-full {
border-bottom-left-radius: 9999px;
}
</style>
75 changes: 75 additions & 0 deletions test/integration/nuxt/hackernews/components/CounterComponent.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
<template>
<div id="counter-fixture" class="rounded-br-full">
<p>Count B: {{ count }}</p>
<button class="inc" @click="increment">
+
</button>
<button class="dec" @click="decrement">
-
</button>
</div>
</template>

<script>
export default {
data() {
return {
count: 0,
};
},
mounted() {
console.log('counter b loaded');
},
methods: {
increment() {
this.count += 2;
},
decrement() {
this.count -= 2;
},
},
};
</script>

<style lang="postcss">
#counter-fixture {
color: #fff;
margin-left: 2rem;
padding: 10px;
border: 1px solid #ccc;
text-align: center;
}

#counter-fixture p {
margin: 10px 0;
font-size: 1.2rem;
}

button {
background-color: #4caf50;
/* Tailwind green */
color: white;
padding: 8px 15px;
margin: 5px;
border: none;
border-radius: 4px;
cursor: pointer;
}

button:hover {
background-color: #45a049;
}

button.dec {
background-color: #f44336;
/* Tailwind red */
}

button.dec:hover {
background-color: #d32f2f;
}

.rounded-bl-full {
border-bottom-left-radius: 9999px;
}
</style>
Loading