Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@benev/slate

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@benev/slate - npm Package Versions

13
8

0.2.9

Diff

Changelog

Source

v0.2.9

  • 🔶 rename generate_id to hexId (old name deprecated)
  • 🍏 add tools:
    • escapeRegex
    • hash
    • hat
    • randomFullName
    • MemeNames
    • repeater
chasemoskal
published 0.2.8 •

Changelog

Source

v0.2.8

  • 🔶 rename GoldElement to ShadowElement
  • 🔶 rename SilverElement to LightElement
  • 🔶 rename mixin.reactor to mixin.reactive
  • 🔶 rename apply.reactor to apply.reactive
chasemoskal
published 0.2.7 •

Changelog

Source

v0.2.7

  • 🔶 rename defaultNexus to nexus
  • 🔶 rename apply.context to apply.setup
  • 🍏 enhance use.styles now accepts any number of stylesheet args
    // you can now pass multiple stylesheets this way
    use.styles(cssA, cssB, cssC)
    
  • 🍏 enhance use.css alias for use.styles
  • 🍏 add mixin.setup (to match apply.setup)
  • 🍏 add new package exports:
    • lightView (alias for nexus.lightView)
    • lightComponent (alias for nexus.lightComponent)
    • shadowView (alias for nexus.shadowView)
    • shadowComponent (alias for nexus.shadowComponent)
    • shadowComponentify (alias for nexus.shadowComponentify)
    • component (alias for nexus.component)
    • components (alias for nexus.components)
chasemoskal
published 0.2.6 •

Changelog

Source

v0.2.6

  • 🔶 tweak generic type signature on Pool
  • 🔶 deprecated explode_promise (prefer deferPromise)
  • 🍏 add: tool concurrent
  • 🍏 add: tool deferPromise
  • 🍏 add: tool deadline
  • 🍏 enhance: pubsub
    • added new once method
    • now you can subscribe async functions
    • publish now returns a promise, to wait for all subscribers to finish working
chasemoskal
published 0.2.5 •

Changelog

Source

v0.2.5

  • 🔶 ts target es2023, seems all evergreen browsers support it
  • 🔶 deprecated maptool in favor of Map2
  • 🍏 add: tool requestAnimationFrameLoop
  • 🍏 add: tool Map2 facility will replace maptool
chasemoskal
published 0.2.4 •

chasemoskal
published 0.2.3 •

chasemoskal
published 0.2.2 •

Changelog

Source

v0.2.2

  • 🍏 add use.deferOnce
  • 🔶 deprecated is.void(x), renamed to is.unavailable(x)
  • 🔶 deprecated is.defined(x), renamed to is.available(x)
chasemoskal
published 0.2.1 •

Changelog

Source

v0.2.17

  • 🍏 add Content type, which may be preferable to RenderResult
  • 🍏 improve opSignal.load with deconfliction: now only the latest run will update the signal
  • 🍏 add OpSignal.load static helper, to create and start an operation
chasemoskal
published 0.2.0 •

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

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