Skip to content

Commit

Permalink
Organize versioning library (#3309)
Browse files Browse the repository at this point in the history
Versioning library is a big mess of things all into one file, this makes
it hard to contribute. Did this originally because I was going to deal
with multiple madeRequired and madeOptional over time but that will be
done later but finished the cleanup anyway.

Split the versioning.ts into multiple separate logical files:
- `decorators.ts`: Contains all the versioning decorators and accessor
- `internal-projection-functions.ts`: Contains implementation of the
helper function used inside the versioning projection(not meant for
external use)
- `projection.ts`: Contains the projection building functions
- `versioning.ts`: Contains the various versioning computation
function(timeline, etc.)


This makes it clearer of what is supposed to be public apis vs internal,
waht is just mean for decorator, projection, etc.
  • Loading branch information
timotheeguerin committed May 23, 2024
1 parent 5698be1 commit 0a70aa7
Show file tree
Hide file tree
Showing 23 changed files with 972 additions and 910 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
# Change versionKind to one of: internal, fix, dependencies, feature, deprecation, breaking
changeKind: internal
packages:
- "@typespec/versioning"
---

Organize versioning library
Loading

0 comments on commit 0a70aa7

Please sign in to comment.