Website : rimsha.abasa.com
backdoor
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
talha_silentcontent
/
node_modules
/
optics-ts
/
Filename :
CHANGELOG.old.md
back
Copy
# Changelog (not updated) Change logs for new releases can be found from https://github.com/akheron/optics-ts/releases. ## 2.0.0 - **BREAKING CHANGES** - TypeScript 4.1 or newer is required - `.path()` now takes varargs instead of an array. Old: `.path(['foo', 'bar', 'baz'])`, new: `.path('foo', 'bar', 'baz')` - **New features** - Add `.nth()` - Support dotted paths with `.path()`, e.g. `.path('foo.bar.baz')` - `.filter()` now narrows the element type if given a type guard - Add `partsOf()` - **Fixes** - Fix `.filter()` to work when adding/removing elements, and document this behavior ## 1.2.0 - **New features** - Add `.at()` - Make `.find()` removable - **Deprecations** - Deprecate `.index()` in favor of `.at()` - **Documentation** - `strictNullChecks` compiler option is required (#5) ## 1.1.0 - **New features** - Change `.index()` to also work on strings - Add `.head()` as an alias to `.index(0)` - Add string optics: `.chars()`, `.words()` - Add `Setter` optic class - Add setters `.prependTo()` and `.appendTo()` - Add top-level `remove()` - Change `.index()` to be removable - Add `.valueOr()` - **Fixes** - Top level `compose()` signatures were totally screwed up ## 1.0.0 - **New features** - Add `Getter`, `AffineFold` and `Fold` optic classes - Add `.to()` method for creating Getters - **Fixes** - Disallow array optics on `T[] | undefined` and `T[] | null` ## 0.1.0 - Initial release