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

treble-hook

Package Overview
Dependencies
Maintainers
6
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treble-hook - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

4

package.json
{
"name": "treble-hook",
"version": "2.0.3",
"version": "2.0.4",
"description": "Get hooked on simple subscribe-and-publish in ReactJS.",

@@ -20,3 +20,3 @@ "main": "./lib/index.js",

"repository": "https://github.com/igneous-systems/treble-hook",
"author": "Ryan Howard <ryanhoward@igneoussystems.com>",
"author": "Ryan Howard <rollercodester@live.com>",
"license": "MIT",

@@ -23,0 +23,0 @@ "scripts": {

@@ -5,7 +5,5 @@

<h3>
<i>Simple, lightweight state management library for ReactJS with zero dependencies, weighing in at just under 900 bytes (gzip).</i>
<i>Simple, lightweight state management library for ReactJS with zero dependencies, weighing in at <a href="https://bundlephobia.com/result?p=treble-hook@latest">just under 900 bytes (gzip)</a>.</i>
</h3>
<br />
<h3 style={{ color: 'red' }}>IMPORTANT: Upgrading from v1 to v2 includes breaking changes; see API below for new interfaces.</h3>
<br />
<div style="float:left;">

@@ -21,6 +19,11 @@ <a href="https://www.npmjs.com/package/treble-hook" rel="nofollow"><img src="https://img.shields.io/npm/v/treble-hook.svg?style=flat" alt="version"></a>

<p></p>
<br/>
## Installation
```diff
- IMPORTANT: Upgrading from v1 to v2 includes breaking changes; see API below for new interfaces.
```
<br/>
# Installation
`yarn add treble-hook`

@@ -32,4 +35,6 @@

## Quick Start
<br/>
# Quick Start
```jsx

@@ -78,8 +83,12 @@ import trebleHook, { usePubSub } from 'treble-hook'

## Live Examples on Codesandbox
<br/>
# Live Examples on Codesandbox
- [Welcome](https://codesandbox.io/s/create-react-app-ts-mui-treblehook-f2tpp) (Quick Start example with Typescript + Material-UI)
- Classic ToDo App (coming soon)
- Crack that Code Game (coming soon)
- [Classic ToDo App](https://codesandbox.io/s/treble-hook-todos-y7fr0)
- Code Cracker Game (coming soon)
<br/>
# API

@@ -108,2 +117,4 @@

<br/>
## <ins>trebleHook.getPublisher()</ins>

@@ -133,2 +144,4 @@

<br/>
## <ins>usePubSub</ins>

@@ -193,4 +206,6 @@

## Liscense
<br/>
# Liscense
### MIT
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