New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

partial.lenses

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

partial.lenses - npm Package Versions

1
18

12.0.1

Diff

polytypic
published 12.0.0 •

Changelog

Source

12.0.0

As documented in 11.21.0:

  • Support for lazy algebras with the delay function was removed.
  • L.cache was removed.
  • L.augment was removed.
  • L.find and L.findWith were changed to support a hint.
  • L.findHint was marked for removal.
polytypic
published 11.22.2 •

polytypic
published 11.22.1 •

Changelog

Source

11.22.1

Tightened the specification of a number of isomorphisms, including L.uri, L.uriComponent, L.indexed, L.keyed, and L.reverse, so that their inverses treat unexpected inputs as undefined. This is considered a bug fix as the behaviour wasn't previously strictly specified.

polytypic
published 11.22.0 •

polytypic
published 11.21.0 •

Changelog

Source

11.21.0

L.cache was marked for removal. The main problem with L.cache is much like with naïve memoize implementations: the cache is stored in the wrong place, which is the point of definition of a cached (memoized) optic (function). Instead, the cache storage should be at the point of use so that when the data at the point of use is discarded so can the cache and that different points of use can each have their own cache. Otherwise it is easy to have inefficient caching and space leaks (keeping cache data around for too long).

L.augment was marked for removal. The reason for removing L.augment is that the library nowadays allows most of L.augments functionality to be implemented using simpler combinators such as L.pick with ordinary functions.

L.findHint was marked for merging into L.find. In the next major version L.find will take an optional hint parameter like current L.findHint and L.findHint will be marked for removal. Also, L.find will pass three arguments to the predicate. The third parameter is the hint object.

L.findWith was marked to be changed to support a hint parameter. This means that instead of taking multiple lenses as arguments to compose, L.findWith will, in the next major version, take a single lens and an optional hint parameter. To prepare use of L.findWith to be more compatible with the next major version, simply pass an array of the lenses:

-L.findWith(...ls)
+L.findWith([...ls])

Support for lazy algebras in the form of the delay operation was marked for removal. The reason for removing support for lazy algebras is that the next major version implements operations currently using lazy algebras, like L.select, using a different technique that is significantly faster on current JavaScript engines. That is because allocation of closures is very expensive on current JavaScript engines and lazy algebras tend to result in allocating lots of closures. Aside from performance issues, lazy algebras do, however, seem solid, but having code supporting them without actually using them internally for anything seems wasteful.

polytypic
published 11.20.0 •

polytypic
published 11.19.0 •

polytypic
published 11.18.0 •

polytypic
published 11.17.0 •

Changelog

Source

11.17.0

Fixed a bug in L.countIf. Previously it didn't pass the index to the predicate as specified in the documentation.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc