@shd101wyy/yo 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/LICENSE.md +2 -2
  2. package/README.md +7 -6
  3. package/out/cjs/index.cjs +688 -638
  4. package/out/cjs/yo-cli.cjs +698 -648
  5. package/out/esm/index.mjs +628 -578
  6. package/out/types/src/build-runner.d.ts +1 -1
  7. package/out/types/src/codegen/async/runtime-io-common.d.ts +2 -1
  8. package/out/types/src/codegen/async/runtime.d.ts +5 -1
  9. package/out/types/src/codegen/functions/collection.d.ts +1 -1
  10. package/out/types/src/codegen/utils/index.d.ts +3 -0
  11. package/out/types/src/evaluator/builtins/comptime-index-fns.d.ts +17 -0
  12. package/out/types/src/evaluator/calls/index-trait.d.ts +17 -0
  13. package/out/types/src/evaluator/context.d.ts +18 -14
  14. package/out/types/src/evaluator/index.d.ts +3 -1
  15. package/out/types/src/evaluator/trait-checking.d.ts +1 -0
  16. package/out/types/src/evaluator/values/anonymous-module.d.ts +3 -2
  17. package/out/types/src/expr.d.ts +20 -1
  18. package/out/types/src/module-manager.d.ts +1 -0
  19. package/out/types/src/value.d.ts +2 -0
  20. package/out/types/tsconfig.tsbuildinfo +1 -1
  21. package/package.json +1 -1
  22. package/std/collections/array_list.yo +17 -61
  23. package/std/collections/btree_map.yo +13 -3
  24. package/std/collections/deque.yo +10 -0
  25. package/std/collections/hash_map.yo +15 -0
  26. package/std/collections/priority_queue.yo +5 -5
  27. package/std/encoding/punycode.yo +2 -2
  28. package/std/encoding/toml.yo +1 -1
  29. package/std/prelude.yo +818 -205
  30. package/std/process.yo +1 -1
  31. package/std/regex/compiler.yo +11 -11
  32. package/std/regex/index.yo +2 -4
  33. package/std/regex/vm.yo +41 -21
  34. package/std/string/string.yo +39 -5
  35. package/out/types/src/evaluator/calls/array.d.ts +0 -14
package/LICENSE.md CHANGED
@@ -2,11 +2,11 @@ University of Illinois/NCSA
2
2
  Open Source License
3
3
 
4
4
  ```
5
- Copyright (c) 2023 ~ 2025 Yiyi Wang
5
+ Copyright (c) 2023 ~ 2026 Yiyi Wang
6
6
  All rights reserved.
7
7
 
8
8
  Developed by: Yiyi Wang
9
- https://github.com/0xgg/Yo
9
+ https://github.com/shd101wyy/Yo
10
10
  ```
11
11
 
12
12
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal with the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
package/README.md CHANGED
@@ -256,12 +256,13 @@ export main;
256
256
 
257
257
  ### Example Projects
258
258
 
259
- | Project | Description |
260
- | ---------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
261
- | [raylib_yo](https://github.com/shd101wyy/raylib_yo) | Comprehensive [raylib](https://www.raylib.com/) bindings — 35 struct types, 535 functions, 227 constants |
262
- | [tetris_yo](https://github.com/shd101wyy/tetris_yo) \| [Online Demo](http://shd101wyy.github.io/tetris_yo) | Classic Tetris game built with raylib_yo, demonstrating Yo's build system and C interop |
263
- | [http_server_demo_yo](https://github.com/shd101wyy/http_server_demo_yo) | Simple HTTP/1.1 server — async I/O, algebraic effects, TCP networking, request parsing & routing |
264
- | [markdown_it_yo](https://github.com/shd101wyy/markdown_it_yo) | Diect port of the popular JavaScript markdown parser [markdown-it](https://github.com/markdown-it/markdown-it) to Yo, showcasing string processing and performance |
259
+ | Project | Description |
260
+ | ------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
261
+ | [raylib_yo](https://github.com/shd101wyy/raylib_yo) | Comprehensive [raylib](https://www.raylib.com/) bindings — 35 struct types, 535 functions, 227 constants |
262
+ | [tetris_yo](https://github.com/shd101wyy/tetris_yo) \| [Online Demo](http://shd101wyy.github.io/tetris_yo) | Classic Tetris game built with raylib_yo, demonstrating Yo's build system and C interop |
263
+ | [http_server_demo_yo](https://github.com/shd101wyy/http_server_demo_yo) | Simple HTTP/1.1 server — async I/O, algebraic effects, TCP networking, request parsing & routing |
264
+ | [markdown_it_yo](https://github.com/shd101wyy/markdown_it_yo) | Direct port of the popular JavaScript markdown parser [markdown-it](https://github.com/markdown-it/markdown-it) to Yo, showcasing string processing and performance |
265
+ | [markdown_yo](https://github.com/shd101wyy/markdown_yo) \| [Online Demo](https://shd101wyy.github.io/markdown_yo/) | High-performance markdown-to-HTML converter — 5-7× faster than markdown-it (native), 2-6× faster (WASM at ≥1 MB). [Try it in the browser](https://shd101wyy.github.io/markdown_yo/) |
265
266
 
266
267
  ## Contributing
267
268