Skip to content

Commit

Permalink
chore: release first beta versions
Browse files Browse the repository at this point in the history
  • Loading branch information
MangelMaxime committed Sep 8, 2024
1 parent b4c9012 commit 18d4424
Show file tree
Hide file tree
Showing 3 changed files with 109 additions and 0 deletions.
47 changes: 47 additions & 0 deletions packages/Fable.Form.Simple.Bulma/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,55 @@ 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).

<!-- EasyBuild: START -->
<!-- last_commit_released: b4c90120754bc99cd66712e9e240013751f9eff5 -->
<!-- EasyBuild: END -->

## 5.0.0-beta-001

### 🚀 Features

* Make it easier to add custom fields ([533c062](https://github.com/glutinum-org/cli/commit/533c0626ab634267a3d5b3187410d4b4eaf68fd2))

It is now easy to create custom form fields.

The drawback right now is that customising only the view requires a little more work than before. But I think the trade-off is worth it.

Before, people needed to fork `Fable.Form.Simple` and `Fable.Form.Simple.Bulma` to add custom fields. Now, they just need to implements `IField` API and it is done.

* Define how fields are represented thanks to the `IField`, `StandardRenderFieldConfig`, `IStandardField`, `IGenericField` and more.
* Add `FieldId` to most of field attributes because using only the label to detect field error don't guarantee a unique result.

For example, you can have two fields with a label "FirstName". Thanks to the field id you do "firstname-student" and "firstname-teacher"

* Export removed `Form.xxx` functions from `Fable.Form.Simple` making transition to 2.0 easy
* `Form.succeed`
* `Form.append`
* `Form.disable`
* `Form.andThen`
* `Form.optional`
* `Form.textField`
* `Form.passwordField`
* `Form.colorField`
* `Form.dateField`
* `Form.dateTimeLocalField`
* `Form.numberField`
* `Form.searchField`
* `Form.telField`
* `Form.timeField`
* `Form.emailField`
* `Form.textareaField`
* `Form.checkboxField`
* `Form.radioField`
* `Form.selectField`
* `Form.fileField`
* `Form.group`
* `Form.section`
* `Form.fill`
* `Form.rec mapFieldValues`
* `Form.list`
* `Form.meta`
* `Form.mapValues`

## 4.1.0 - 2024-02-03

### Added
Expand Down
39 changes: 39 additions & 0 deletions packages/Fable.Form.Simple/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,47 @@ 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).

<!-- EasyBuild: START -->
<!-- last_commit_released: b4c90120754bc99cd66712e9e240013751f9eff5 -->
<!-- EasyBuild: END -->

## 5.0.0-beta-001

### 🚀 Features

* Make it easier to add custom fields ([e4b8ea8](https://github.com/glutinum-org/cli/commit/e4b8ea8bb4b814c932a9ad3996cd0f554435373c))

`Fable.Form.Simple` is now field agnostic. It only contains logic on how a Form should be represented and how it behaves.

* Change `Form.View.custom` to take an additional `renderForm` and `renderField` functions
* Remove all `Form.xxx` functions (they moved to Fable.Form.Simple.Bulma)
* `Form.succeed`
* `Form.append`
* `Form.disable`
* `Form.andThen`
* `Form.optional`
* `Form.textField`
* `Form.passwordField`
* `Form.colorField`
* `Form.dateField`
* `Form.dateTimeLocalField`
* `Form.numberField`
* `Form.searchField`
* `Form.telField`
* `Form.timeField`
* `Form.emailField`
* `Form.textareaField`
* `Form.checkboxField`
* `Form.radioField`
* `Form.selectField`
* `Form.fileField`
* `Form.group`
* `Form.section`
* `Form.fill`
* `Form.rec mapFieldValues`
* `Form.list`
* `Form.meta`
* `Form.mapValues`

## 4.1.0 - 2024-02-03

### Added
Expand Down
23 changes: 23 additions & 0 deletions packages/Fable.Form/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,31 @@ 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).

<!-- EasyBuild: START -->
<!-- last_commit_released: b4c90120754bc99cd66712e9e240013751f9eff5 -->
<!-- EasyBuild: END -->

## 3.0.0-beta-001

### 🚀 Features

* Make it easier to add custom fields ([c99eed9](https://github.com/glutinum-org/cli/commit/c99eed98527d3a0f19b75967434b74af8cb7ca26))

* Field attributes now needs to inherit from `IAttributes`
* Refactor `Base.fill` to explicitly take a `values` argument instead of returning a lambda

```fsharp
val fill:
Form<'Values,'Output,'Field>
-> 'Values -> FilledForm<'Output,'Field>
```

```fsharp
val fill:
Form<'Values,'Output,'Field> ->
values: 'Values
-> FilledForm<'Output,'Field>
```

## 2.0.0 - 2022-06-23

### Changed
Expand Down

0 comments on commit 18d4424

Please sign in to comment.