Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: adamko-dev/kotlinx-serialization-typescript-generator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.0.5
Choose a base ref
...
head repository: adamko-dev/kotlinx-serialization-typescript-generator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.1.0
Choose a head ref
  • 9 commits
  • 66 files changed
  • 1 contributor

Commits on Apr 9, 2022

  1. Continuous improvements: Tuples, TypeUnions, descriptor extraction (#21)

    * change tuple constructor to use an iterator, so it's not indexed based (and so a little less fragile)
    
    * distinct the given serializers, before generating
    
    * make a distinction between a type alias (to one type) and type union (helps with the 'brand typing' option')
    
    - change the formatting of type unions
    -
    
    * add kotest
    
    * fix extracting SerialDescriptors from within subclasses
    
    * additional test for serializer extraction from sealed classes
    
    * document polymorphic descriptor extraction
    aSemy authored Apr 9, 2022
    Configuration menu
    Copy the full SHA
    f20ea57 View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2022

  1. #24 TS Compilation testing (#25)

    * initial ts compile test example
    
    - setup Gradle Node plugin
    - run tsc in test
    
    * tidy up initial typescript compile test, and apply to all tests
    
    very slow! need to make them parallel...?
    
    * fix nullable values being used as indexed object keys (a good outcome from the ts compile testing!
    
    * apply typescript compilation tests to all knit tests
    
    - very slow, needs work to make them faster, or exclude the slow tests
    - migrate all tests to Kotest (works better with coroutines)
    - bump kotest version
    - tag tests
    
    * move test util to actual directory package
    
    * code tidy up: delete unused and some renames
    
    * exclude slow TSCompile tests
    aSemy authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    700917f View commit details
    Browse the repository at this point in the history
  2. #26 named tuples (#27)

    - implement labelled tuple elements, add tests, fix existing
    - simplify 'TSProperty', it only needs to be one class
    - TSCompile tests passed ✅
    aSemy authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    2f2f184 View commit details
    Browse the repository at this point in the history
  3. Handle maps with type-alias keys (#29)

    * #28 allow value classes as indexed type map keys
    
    * more tests for type alias enum map keys
    
    * tidy up inline type extractor
    aSemy authored Apr 10, 2022
    Configuration menu
    Copy the full SHA
    b2f134b View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2022

  1. Element overriding (#30)

    * allow for overriding of elements (partial support for #23 and #22), and update knit to allow for TS Compile to be disabled
    
    * make TsMapTypeConverter more clear, split inline/non-inline
    
    * code tidy
    
    * fix bug where overrides weren't consistently found and applied if the target was nullable
    aSemy authored Apr 13, 2022
    Configuration menu
    Copy the full SHA
    611f642 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    43df261 View commit details
    Browse the repository at this point in the history

Commits on Jun 1, 2022

  1. Continuous development (#32)

    * re-enable kotlin js
    
    * re-enable kotlin js
    
    * additional test for tuple as map key
    
    * make jvm target 1.8 (better compatibility)
    
    * rename source code generate to match names of other classes
    
    * version bumps kotlin 1.6.20
    
    * spelling/grammar
    
    * fix sealed interface enums not using the correct serial name
    
    * rm extra line breaks at end of code block
    
    * set up centralised versions and versions platform
    
    * fix buildsrc gradle config
    
    * fix publishing java platform
    
    * map type improvements
    
    - allow numbers as indexed type keys
    - map type will check for TsElement overrides
    - add option to override the generated map type
    
    * re-use test name for the TS file name
    
    * fix tuple serializer
    
    * tidy up tuple serializer
    
    * fix tuple deserialization
    
    * rm debug print
    
    * bump kotlin 1.6.21
    
    * start trying to set up maven central publishing
    
    * enable gradle caching
    
    * enable gradle parallel
    aSemy authored Jun 1, 2022
    Configuration menu
    Copy the full SHA
    1617a47 View commit details
    Browse the repository at this point in the history
  2. bump some versions (#34)

    aSemy authored Jun 1, 2022
    Configuration menu
    Copy the full SHA
    04c1cf0 View commit details
    Browse the repository at this point in the history

Commits on Jun 2, 2022

  1. Publish to Maven Central (#35)

    * setup maven publish convention, fix project group kxtsgen -> kxstsgen, rename kotlin-mpp convention plugin to avoid clash with the actual KotlinMultiplatformPlugin
    
    * tidy-up Maven publishing config
    aSemy authored Jun 2, 2022
    Configuration menu
    Copy the full SHA
    05ecef3 View commit details
    Browse the repository at this point in the history
Loading