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

dio.js

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dio.js - npm Package Versions

1
89

1.0.8

Diff

thysultan
published 1.0.7 •

thysultan
published 1.0.6 •

thysultan
published 1.0.5 •

thysultan
published 1.0.3 •

thysultan
published 1.0.2 •

thysultan
published 1.0.0 •

Changelog

Source

1.0.0 (25 July 2019)

  • Change package name "dio.js" to "dyo".
  • Move repo to organization. github.com/dyo/dyo

Added

  • Suspense, Boundary, Context and Portal components.

  • memo and lazy factories.

  • Added hooks(state, effects, context, ref and memo/callback hooks).

  • Portal re-parenting.

When a portals container changes, previous children are moved to the new container instead of unmounted and re-created.

  • The render interface can now render into any container. For example it could noop render into a non-document container: render('Hello', {}).

  • New dyo/server package, supports rendering to any writable streams For example – a node response object: render('Hello', response), with friction-less async and error boundary support.

Removed

  • Removed unmountComponentAtNode.

Redundent given render(null, target) archives the same effect.

  • Removed findDOMNode.

Undeterministic given exotic elements like Fragments don't have "single" DOM node. Refs are the better abstraction given they are also auto-fowarded.

  • Removed renderToStream and renderToString.

Better level of abstraction with a single source of entry with: render. The dyo/server package accepts writable streams to write to.

  • Removed componentWillMount, componentWillUpdate and componentWillReceiveProps.

Added effects useEffect and useLayout to replace them all.

  • Removed componentDidCatch being replaced by a single Boundary component.

  • Removed createFactory, createComment.

  • Removed Component, PureComponent and class components in general.

  • Removed createPortal and createContext being replaced by Portal and Context components respectfully.

1
89
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