25.11.2020
- Changed return type of
Sentence.generate
to string
21.11.2020
- Changed various types and interfaces
- Removed method
restoreDefaults
fromSentenceFactory
- Added needlessly complex esm build process
- Added automatic type declarations to compile
- Added following types to exports:
Template
Vocabulary
Options
Configuration
StringResolvable
WeightedEntry
- Fixed various issues/bugs with special characters in placeholder notation
- Fix error where adding
a-
or-s
to a placeholder would break during runtime
0.6.0 - Weighted Types
24.08.2020
- Changed method
addVocab
toaddVocabulary
in classSentence
- Removed method
setOptions
in classSentence
- Removed option
allowDuplicates
- Added type
WeightedTemplate
- Added type
WeightedVocabulary
- Added type
WeightedEntry
- Added setter
options
inSentence
- Added getter
weightedTemplates
inSentence
- Added getter
weightedVocabulary
inSentence
- Changed resolution of duplicates so that they simply increases the given entry's weight
- Fix
addVocabulary
so that it appends instead of overwriting
0.5.2 - StringResolvable
18.08.2020
- Added type
StringResolvable
- Change type
Template
to accept StringResolvable - Change type
Vocabulary
to accept StringResolvable
17.08.2020
- 🐛 Fix issue where option
forceNewSentence
would have no effect
0.5.0 - TypeScript
16.08.2020
- Refactored entire project to TypeScript
- Removed default export, should now defer to importing
createSentence
for the default behaviour - Removed or changed all other exports
- Added class
Sentence
to exports - Added class
SentenceFactory
to exports
0.4.2 - 11.08.2020
- 🔩 Change package keywords
- 🔩 Change package description
- 🔩 Change README
0.4.1 - 30.07.2020
- 🎉 New option
allowDuplicates
now functions as expected - 🎉 New option
capitalize
now functions as expected - 🎉 New option
placeholderNotation
- 💥 Changed option
preserveCurlyBrackets
topreservePlaceholderNotation
- 🐛 Fix
setOptions
so that it no longer resets unspecified options to previous defaults
0.4.0 - 26.07.2020
- 🎉 New option
forceNewSentence
, which will forceSentence.generate()
to avoid duplicate of previous sentence when possible - 🎉 New method
restoreDefaults()
available at entry point
- 🔩 Add jest for testing
- 🔩 Add eslint for linting
- 🔩 Add .npmignore
- 🔩 Add Github Workflows for CI/CD
- 🔩 Change validation to module
validator
- 🔩 Change defaults to module
defaults
- 🔩 Various other changes and improvements to readability and encapsulation