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

@benev/slate

Package Overview
Dependencies
Maintainers
0
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@benev/slate - npm Package Versions

1
9

0.2.0

Diff

Changelog

Source

v0.2.0

  • 🟥 camel case!
    • light_view is now lightView
    • light_component is now lightComponent
    • shadow_view is now shadowView
    • shadow_component is now shadowComponent
  • 🟥 use.defer
    • now returns a Signal
    • it used to directly return a value
    • the reason for this change, was that the old way created a footgun where it's very easy to accidentally hold an old reference to the deferred value that you wanted. so, now using a signal, your access to the signal's value is more likely to be an up-to-date reference
  • op loading effects
    • 🟥 prep_op_effect replaced by makeLoadingEffect or makeAnimatedLoadingEffect
    • 🍏 added loading effects like loading.binary(op, onReady) and loading.braille(op, onReady)
  • 🟥 eliminated @benev/slate/x/pure.js
    • beware if you are using slate in a node.js environment
    • pure.js was an alternative entrypoint for node to import the parts of slate that didn't touch any DOM apis
    • instead, now, if you are importing slate into node, you should do this first:
      import "@benev/slate/x/node.js"
      
    • all this does is assign global.HTMLElement = class {} because extending HTMLElement is the only contact that slate has with the dom at import time
    • thus, the new node.js is a little shim that lets you import all of slate in node (maybe for unit testing or to use some tools)
  • 🟥 interval tool: changed arguments
    • now it accepts plain milliseconds
    • whereas the new interval.hz accepts hertz, replacing what used to be called interval
    • thus, to upgrade, replace interval(1, fn) with interval.hz(1, fn)
  • 🔶 deprecate signal.subscribe in favor of signal.on
  • 🔶 deprecate tools:
    • Trashcan (in favor of Trashbin)
    • pub (in favor of pubsub)
  • 🍏 added use.load helper for creating an op and immediately initiating a load operation
  • 🍏 added tools:
    • wherefor
    • ref and Ref
<br/>

v0.1

chasemoskal
published 0.2.0-7 •

chasemoskal
published 0.2.0-6 •

chasemoskal
published 0.2.0-5 •

chasemoskal
published 0.2.0-4 •

chasemoskal
published 0.2.0-3 •

chasemoskal
published 0.2.0-2 •

chasemoskal
published 0.2.0-1 •

chasemoskal
published 0.2.0-0 •

chasemoskal
published 0.1.2 •

Changelog

Source

v0.1.2

  • 🔶 added watch.wait promise, because watch tower dispatches are now debounced
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