Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
jhpyle committed Jun 1, 2024
1 parent e55ee98 commit 7d81a7d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions _docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@ layout: docs
title: Change Log
short_title: Change Log
---
## [1.4.105](https://github.com/jhpyle/docassemble/releases/tag/v1.4.105) - 2024-06-01


### Changed
- The `validate()`, `transform()`, and `default_for()` methods of a
`CustomDataType` are now called with an additional positional
parameter that is the name of the variable as a string. This change
is backwards-compatible, so if your method does not expect the
additional positional parameter, it is not called with the
additional positional parameter.
- When using a `datatype` that references a `CustomDataType`, `data`
attributes will be added to the `<input>` element containing the
values of field modifiers `minlength`, `maxlength`, `min`, `max`,
`step`, `scale`, `currency symbol`, and `field metadata`, if those
modifiers are present. The `field metadata` are available as a JSON
string in the `field-metadata` data attribute.

### Fixed
- Bug that prevented the Configuration directive `initial dict` from
functioning.
- Added `aria-required` and moved `role="radiogroup"` for
accessibility compliance.
- Bug with `button style` Configuration parameter.

## [1.4.104](https://github.com/jhpyle/docassemble/releases/tag/v1.4.104) - 2024-05-06


Expand Down
5 changes: 5 additions & 0 deletions _docs/documents.md
Original file line number Diff line number Diff line change
Expand Up @@ -1524,6 +1524,11 @@ be substituted for any fields for which a value cannot be determined
due to a variable being undefined. You can also set `skip undefined`
to a Python expression that evaluates to a true or false value.

If your template contains computations, using `skip undefined: True`
may lead to bugs that are difficult to track down, since variables
that should have certain data types will be `Undefined` and you will
get strange error messages.

The `skip undefined` setting should only be used if the document does
not need to be robust. For example, it could be used to show the user
an intermediate draft of a PDF document. It should not be used as a
Expand Down

0 comments on commit 7d81a7d

Please sign in to comment.