1
0
Fork 0
mirror of https://github.com/zigzap/zap.git synced 2026-01-29 09:06:58 +00:00
Commit graph

43 commits

Author SHA1 Message Date
renerocksai
a0f67ffc6e
Update to Zig 0.16.0-dev (master) compatibility
Adapt codebase to breaking API changes in Zig 0.16.0-dev:

std.Io introduction:
- std.io namespace renamed to std.Io (capitalization)
- std.http.Client now requires io field
- Create std.Io.Threaded at entry points, pass io to functions
- Use std.Io.Writer.fixed() for fixed buffer writers
- Use std.Io.Dir.cwd().access(io, ...) for file access checks

Sleep API:
- std.Thread.sleep / std.time.sleep removed
- Use std.posix.nanosleep(seconds, nanoseconds) instead

JSON API:
- std.json.stringify() -> std.json.Stringify.value()

Time API:
- std.time.nanoTimestamp() removed
- Use std.time.Instant.now() with .since() for durations

File API:
- readFileAlloc parameter order changed, uses std.Io.Limit

Debug API:
- std.debug.writeStackTrace signature changed (removed debugInfo)
- Capture traces by pointer with |*trace| pattern

Refactored Io pattern in tests/examples to create Threaded once
at entry points and pass io: std.Io to helper functions, following
Zig's new convention of treating Io like allocators.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-06 16:11:10 +01:00
renerocksai
0a582433a5
upgrade announceybot to 0.15.1 2025-08-28 19:45:13 +02:00
renerocksai
fcce4517de
introduced error union to request fn return type 2025-03-16 20:16:14 +01:00
Rene Schallner
9a80747cdd
docs, announceybot: switch to using zig fetch 2024-10-14 23:01:09 +02:00
Rene Schallner
c56ebc7840 corrected release templates 2024-06-28 11:53:22 +02:00
Rene Schallner
fed9633121 make zap master build with zig master 2024-06-27 19:33:04 +02:00
Rene Schallner
fc7f11a35f fix docserver invocation from build.zig 2024-04-27 21:08:27 +02:00
Louis Pearson
a907ef9fad feat: Wrap mimetypeRegister and mimetypeClear 2024-04-23 16:44:18 -06:00
Louis Pearson
3e4c29409e fix: docserver: server wasm with correct mimetype 2024-04-23 16:13:07 -06:00
Rene Schallner
b8b30012dc Update announceybot.exe with new templates 2024-04-22 08:58:50 +00:00
Rene Schallner
81cdd6107b Update announceybot templates 2024-04-22 10:56:34 +02:00
Rene Schallner
e95b12d5ff Update README and announceybot.exe 2024-04-22 10:14:02 +02:00
Rene Schallner
8cfd190fb2
Merge branch 'zig-0.12.0' into zig-0.12.0 2024-04-21 13:59:47 +02:00
Andreas Stocker
44af23827e fix breaking changes as of 14-4-24 2024-04-14 18:19:18 +02:00
Rene Schallner
8cf48ddfc1 zig master: exit, get_env fixes 2024-03-23 22:23:13 +01:00
Rene Schallner
35b8337ccb fix announceybot templates for 0.12 2024-02-24 17:26:49 +01:00
renerocksai
3d651229f8 API cleanup #1
--------------

- EndpointListener.register() // was: addEndpoint
- no more Simple
- getEndpoint -> endpoint()
2024-01-08 15:50:46 +01:00
Rene Schallner
521b0deaf6 added docs & docserver 2023-12-30 00:51:05 +01:00
Rene Schallner
82323f835e 0.12.0 ready 2023-12-29 23:34:33 +01:00
Rene Schallner
8a2d077bd8 fixed release note templates: b.installArtifact 2023-09-23 10:50:47 +02:00
Ed Yu
22d4b80cb9 Update to use the new alignCast where the alignOf is not needed anymore 2023-06-26 20:11:34 -07:00
Ed Yu
5611026479 Update builtin functions due to zig changes 2023-06-21 14:53:37 -07:00
Rene Schallner
f5bbbff15f latest zig->snek_case, std.debug.TTY -> std.io.tty 2023-05-28 00:22:37 +02:00
Rene Schallner
af4d62ab97 latest zig, fix std.sort.sort -> std.mem.sort 2023-05-28 00:11:33 +02:00
Rene Schallner
d8e8e4c1a9 release workflow: add manual trigger, use announceybot.exe 2023-05-22 21:19:47 +02:00
Rene Schallner
9378bd7279 fix announceybot help msg, delete python version 2023-05-22 21:19:47 +02:00
Rene Schallner
a0994b4c6c zig announceybot update-readme works 2023-05-22 21:19:47 +02:00
Rene Schallner
318472be03 zig announceybot splits long announcements for discord, prints
release-notes
2023-05-22 21:19:47 +02:00
Rene Schallner
10e9eb6a13 announceybot in zig can send announcements 2023-05-22 21:19:47 +02:00
Rene Schallner
52551e0970 announceybot cosmetics 2023-05-22 05:17:21 +02:00
Rene Schallner
5b0bb9c166 announceybot formatting 2023-05-22 03:43:56 +02:00
Rene Schallner
94010505e9 github workflow permissions 2023-05-22 03:04:47 +02:00
Rene Schallner
01ce845d76 fixed generate_releasenotes 2023-05-22 02:49:14 +02:00
Rene Schallner
95f3a96184 replaced gitpython by git subcommand in workflow 2023-05-22 02:46:54 +02:00
Rene Schallner
9938667ad1 add static pkghash exe to workflow 2023-05-22 02:15:06 +02:00
Rene Schallner
66e1a31efb release workflow, first cut 2023-05-22 02:02:04 +02:00
Rene Schallner
27ab749281 added auto readme update, announceybot fixes 2023-05-22 01:48:31 +02:00
Rene Schallner
b8e00f3a72 added announceybot (webhook version) 2023-05-21 19:30:30 +02:00
Rene Schallner
d9b3c528e9 fixed pkghash 2023-04-23 00:28:46 +02:00
Rene Schallner
1b4de1dbf9 pkghash default tag to latest one pointing to HEAD 2023-04-22 16:32:47 +02:00
Rene Schallner
b69599dcda tools/pkghash: support for release-template.md 2023-04-22 15:28:33 +02:00
Rene Schallner
904d892197 tools/pkghash: added --git option for using git-ls 2023-04-22 14:58:20 +02:00
Rene Schallner
b7f3ae06c6 update tests, pkghash 2023-04-22 07:38:44 +02:00