diff --git a/CHANGELOG.md b/CHANGELOG.md index b2f86da..6e6e0f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,9 +5,106 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - + +## 0.10.0 + +### 🚀 Features + +* Merge duplicated `types` and `module` ([acf4571](https://github.com/glutinum-org/cli/commit/acf45717dc0b950e79d5c0f2123f112aa3da5fe3)) + + Interfaces exemple: + + ```ts + export interface PointGroupOptions { + size: number; + } + + export interface PointGroupOptions { + label: string; + } + ``` + + ```fs + [] + [] + type PointGroupOptions = + abstract member size: float with get, set + abstract member label: string with get, set + ``` + + Modules example: + + ```ts + export module Log { + + export interface Options { + prefix: string + } + + export interface Options { + suffix: string + } + } + + export module Log { + + export function log() : void; + + export interface Options { + level: number + } + } + ``` + + ```fs + module Log = + + [] + [] + type Options = + abstract member prefix: string with get, set + abstract member suffix: string with get, set + abstract member level: float with get, set + + [] + [] + type Exports = + [] + abstract member log: unit -> unit + ``` + +* Add `Partial` supports + add `typeMemory` access for later reference ([38eb08e](https://github.com/glutinum-org/cli/commit/38eb08ee26f7cf946aceda4aad5c50a1946c3a18)) + + ```ts + export interface PointGroupOptions { + dotSize: number; + } + + export interface Options extends Partial { + minDistance?: number; + } + ``` + + ```fs + [] + [] + type PointGroupOptions = + abstract member dotSize: float with get, set + + [] + [] + type Options = + abstract member minDistance: float option with get, set + abstract member dotSize: float option with get, set + ``` + +### 🐞 Bug Fixes + +* Generate constructor when a class is exported as `default` ([8e60ee7](https://github.com/glutinum-org/cli/commit/8e60ee765ccd30ef7dfd3057c07c7a09b18f0606)) +* Do not include `this` argument when generating signature of a `FunctionType` ([dd86e28](https://github.com/glutinum-org/cli/commit/dd86e282fda872f98d485c7a5f54ddecf7eacd66)) + ## 0.9.0 ### 🚀 Features diff --git a/package.json b/package.json index 8ee6474..bd3e1aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@glutinum/cli", - "version": "0.9.0", + "version": "0.10.0", "description": "TypeScript definition to F# bindings converter", "type": "module", "main": "index.js", diff --git a/src/Glutinum.Build/Commands/Publish.fs b/src/Glutinum.Build/Commands/Publish.fs index f1a9d8b..85f4c59 100644 --- a/src/Glutinum.Build/Commands/Publish.fs +++ b/src/Glutinum.Build/Commands/Publish.fs @@ -278,6 +278,8 @@ let private updateChangelog (releaseContext: ReleaseContext) = tryFindAdditionalChangelogContent commit.OriginalCommit.Message // Indent the additional lines to be under item bullet point |> List.map (fun line -> $" %s{line}") + // Trim the lines (this is mostly to spaces on "empty" lines) + |> List.map _.Trim() if not additionalChangelogContent.IsEmpty then appendLine "" diff --git a/src/Glutinum.Converter/Prelude.fs b/src/Glutinum.Converter/Prelude.fs index bdd5645..0879410 100644 --- a/src/Glutinum.Converter/Prelude.fs +++ b/src/Glutinum.Converter/Prelude.fs @@ -1,4 +1,4 @@ module Glutinum.Converter.Prelude [] -let VERSION = "0.9.0" +let VERSION = "0.10.0"