Skip to content

Commit 6703640

Browse files
committed
Merge branch 'dev': v1.1.1
2 parents 7809b2e + 8b36936 commit 6703640

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ No other features planned (but I have nothing against improvements: feel free to
55

66
To do some fancy stuff with dictionaries, specialized node packs are recommended instead.
77

8+
# v1.1.1
9+
10+
- Shorten tooltip for `safe_format` toggle.
11+
812
# v1.1.0
913

1014
- `✨New feature` Safe-formatting mode for `String Formatter`:

node_formatter.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,8 @@ def __call__(self, template: str) -> str:
196196
"Do recursive format - i.e., allow the chunks from the dictionary to reference other chunks."
197197
)}),
198198
'safe_format': (_IO.BOOLEAN, {'default': True, 'label_on': 'yes', 'label_off': 'no', 'tooltip': (
199-
"Safe mode: If a specific {text pattern} can't be formatted "
200-
"(it doesn't exist in the dict or isn't a valid formatting pattern at all), "
201-
"leave it as-is.\n"
202-
"On: invalid {patterns} preserved intact.\n"
203-
"Off: invalid {patterns} raise an error.\n\n"
199+
"If template contains an invalid {text pattern} which can't be formatted - leave it as-is "
200+
"(instead of throwing an error).\n"
204201
"Safe mode is recommended for templates with JSON, CSS, or other literal curly brackets."
205202
)}),
206203
'show_status': (_IO.BOOLEAN, {'default': True, 'label_on': 'formatted string', 'label_off': 'no', 'tooltip': (

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "string-constructor"
3-
version = "1.1.0"
3+
version = "1.1.1"
44
description = "String formatting (compiling text from pieces) made for humans:\n• Turn parts of prompt into a dictionary - to share them all across the entire workflow as a single connection.\n• Compose your prompt in-place from these snippets and regular text - with just one text field.\n• Easily update the dictionary down the line - get different prompts from the same template.\n• Reference text chunks within each other to build complex hierarchies of self-updating prompts.\n• A true time-saver for regional prompting (aka area composition)."
55
license = {file = "LICENSE.md"}
66
readme = "README.md"

0 commit comments

Comments
 (0)