Skip to content

Conversation

@mrazauskas
Copy link
Contributor

@mrazauskas mrazauskas commented Dec 22, 2025

Type

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Description

This PR updated TSTyche to the latest version. The release notes can be found here: https://tstyche.org/releases/tstyche-6

TSTyche 6.0 ships with a major rewrite of the .toBe() matcher. I have moved away from using an internal TypeScript method. Now TSTyche is able to walk structure of two types and compare them. As you see in the diff, a few annoying limitations are gone.

Also the new logic is more precise. This is visible in the effect repo (look at the last commit): Effect-TS/effect#5498

@mrazauskas mrazauskas changed the title chore: update tstyche to v6.0.0-beta.1 chore: update tstyche to v6.0.0-beta.4 Jan 1, 2026
@mrazauskas mrazauskas changed the title chore: update tstyche to v6.0.0-beta.4 chore: update tstyche to v6.0.0 Jan 4, 2026
@mrazauskas
Copy link
Contributor Author

@gcanti When you have a moment, could you take look, please? Feels like the new logic of .toBe() matcher is in good shape. Many tests are passing in different repos. Seems like it is well polished.

Happy new year!

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

📊 JSDoc Documentation Analysis

📈 Current Analysis Results
Analyzing 123 TypeScript files in packages/effect/src/ (including schema and config subdirectories)...

============================================================
         EFFECT JSDOC ANALYSIS REPORT
============================================================

📊 SUMMARY STATISTICS
------------------------------
Total files analyzed: 123
Total exported members: 3966
Missing @example: 1601 (40.4%)
Missing @category: 514 (13.0%)

🎯 TOP FILES NEEDING ATTENTION
----------------------------------------
1. Schema.ts
   📝 452 missing examples, 🏷️  261 missing categories
   📦 452 total exports
2. SchemaStandard.ts
   📝 87 missing examples, 🏷️  86 missing categories
   📦 87 total exports
3. Stream.ts
   📝 134 missing examples, 🏷️  0 missing categories
   📦 223 total exports
4. SchemaAST.ts
   📝 77 missing examples, 🏷️  18 missing categories
   📦 77 total exports
5. Channel.ts
   📝 71 missing examples, 🏷️  0 missing categories
   📦 140 total exports
6. Sink.ts
   📝 64 missing examples, 🏷️  2 missing categories
   📦 81 total exports
7. SchemaGetter.ts
   📝 49 missing examples, 🏷️  0 missing categories
   📦 49 total exports
8. SchemaTransformation.ts
   📝 29 missing examples, 🏷️  18 missing categories
   📦 29 total exports
9. Config.ts
   📝 33 missing examples, 🏷️  5 missing categories
   📦 33 total exports
10. Effect.ts
   📝 29 missing examples, 🏷️  1 missing categories
   📦 232 total exports
11. Cause.ts
   📝 26 missing examples, 🏷️  2 missing categories
   📦 66 total exports
12. JsonSchema.ts
   📝 14 missing examples, 🏷️  14 missing categories
   📦 14 total exports
13. SchemaFromJson.ts
   📝 12 missing examples, 🏷️  12 missing categories
   📦 12 total exports
14. SchemaIssue.ts
   📝 22 missing examples, 🏷️  2 missing categories
   📦 22 total exports
15. SchemaParser.ts
   📝 24 missing examples, 🏷️  0 missing categories
   📦 24 total exports

✅ PERFECTLY DOCUMENTED FILES
-----------------------------------
   Chunk.ts (87 exports)
   Clock.ts (5 exports)
   FiberHandle.ts (15 exports)
   FiberMap.ts (19 exports)
   FiberSet.ts (14 exports)
   HKT.ts (4 exports)
   HashMap.ts (44 exports)
   HashSet.ts (21 exports)
   Match.ts (57 exports)
   MutableHashSet.ts (9 exports)
   MutableRef.ts (17 exports)
   NonEmptyIterable.ts (3 exports)
   Random.ts (7 exports)
   Redacted.ts (9 exports)
   RegExp.ts (3 exports)
   Runtime.ts (3 exports)
   Symbol.ts (1 exports)
   Trie.ts (29 exports)
   TxChunk.ts (22 exports)
   TxHashMap.ts (41 exports)
   TxHashSet.ts (24 exports)
   TxRef.ts (7 exports)
   TxSemaphore.ts (14 exports)
   Unify.ts (8 exports)
   index.ts (0 exports)

🔍 SAMPLE MISSING ITEMS FROM Schema.ts
-----------------------------------
   Optionality (type, line 58): missing example, category
   Mutability (type, line 65): missing example, category
   ConstructorDefault (type, line 72): missing example, category
   MakeOptions (interface, line 80): missing example, category
   Bottom (interface, line 104): missing example, category
   declareConstructor (interface, line 156): missing example, category
   declareConstructor (function, line 180): missing example
   declare (interface, line 204): missing example
   declare (function, line 213): missing example, category
   revealBottom (function, line 233): missing example, category

📋 BREAKDOWN BY EXPORT TYPE
-----------------------------------
const: 778 missing examples, 152 missing categories
function: 298 missing examples, 103 missing categories
type: 172 missing examples, 90 missing categories
interface: 264 missing examples, 149 missing categories
class: 56 missing examples, 1 missing categories
namespace: 33 missing examples, 19 missing categories

📈 DOCUMENTATION PROGRESS
------------------------------
Examples: 2365/3966 (59.6% complete)
Categories: 3452/3966 (87.0% complete)

============================================================
Analysis complete! 2115 items need attention.
============================================================

📄 Detailed results saved to: jsdoc-analysis-results.json

This comment is automatically updated on each push. View the analysis script for details.

@github-actions
Copy link

github-actions bot commented Jan 5, 2026

Bundle Size Analysis

File Name Current Size Previous Size Difference
bundle/basic.ts 6.23 KB 6.23 KB 0.00 KB (0.00%)
bundle/batching.ts 8.49 KB 8.49 KB 0.00 KB (0.00%)
bundle/brand.ts 6.24 KB 6.24 KB 0.00 KB (0.00%)
bundle/cache.ts 9.55 KB 9.55 KB 0.00 KB (0.00%)
bundle/config.ts 16.04 KB 16.04 KB 0.00 KB (0.00%)
bundle/differ.ts 14.25 KB 14.25 KB 0.00 KB (0.00%)
bundle/http-client.ts 18.71 KB 18.71 KB 0.00 KB (0.00%)
bundle/logger.ts 8.63 KB 8.63 KB 0.00 KB (0.00%)
bundle/metric.ts 8.72 KB 8.72 KB 0.00 KB (0.00%)
bundle/optic.ts 7.49 KB 7.49 KB 0.00 KB (0.00%)
bundle/pubsub.ts 13.06 KB 13.06 KB 0.00 KB (0.00%)
bundle/queue.ts 10.93 KB 10.93 KB 0.00 KB (0.00%)
bundle/schedule.ts 9.66 KB 9.66 KB 0.00 KB (0.00%)
bundle/schema-string-async.ts 11.22 KB 11.22 KB 0.00 KB (0.00%)
bundle/schema-string-check.ts 9.91 KB 9.91 KB 0.00 KB (0.00%)
bundle/schema-string.ts 9.54 KB 9.54 KB 0.00 KB (0.00%)
bundle/schema-template-literal.ts 12.13 KB 12.13 KB 0.00 KB (0.00%)
bundle/schema-toArbitraryLazy.ts 16.24 KB 16.24 KB 0.00 KB (0.00%)
bundle/schema-toCodecStringTree.ts 15.42 KB 15.42 KB 0.00 KB (0.00%)
bundle/schema-toEquivalence.ts 15.37 KB 15.37 KB 0.00 KB (0.00%)
bundle/schema-toFormatter.ts 15.23 KB 15.23 KB 0.00 KB (0.00%)
bundle/schema-toJsonSchema.ts 17.59 KB 17.59 KB 0.00 KB (0.00%)
bundle/schema.ts 14.86 KB 14.86 KB 0.00 KB (0.00%)
bundle/standard-roundtrip.ts 23.21 KB 23.21 KB 0.00 KB (0.00%)
bundle/stm.ts 11.74 KB 11.74 KB 0.00 KB (0.00%)
bundle/stream.ts 8.42 KB 8.42 KB 0.00 KB (0.00%)

@gcanti
Copy link
Contributor

gcanti commented Jan 5, 2026

As you see in the diff, a few annoying limitations are gone

Hey @mrazauskas great job! Thanks for the PR.

@gcanti gcanti merged commit 294f907 into Effect-TS:main Jan 5, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants