Socket
Socket
Sign inDemoInstall

stent

Package Overview
Dependencies
0
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
2345
9Next

8.0.4

Diff

krasimir
published 8.0.3 •

krasimir
published 8.0.2 •

Changelog

Source

8.0.2

Just a new unit test.

krasimir
published 8.0.1 •

Changelog

Source

8.0.1

Reconnecting to the machine when the component is re-mounted. Issue #38, PR: #39.

krasimir
published 8.0.0 •

Changelog

Source

8.0.0

Changing the way of how Stent names stuff. Issue: #32 , PR: #33

krasimir
published 7.0.0 •

krasimir
published 6.0.1 •

Changelog

Source

6.0.1

Making sure that we check gets send to the call generator helper.

krasimir
published 6.0.0 •

Changelog

Source

6.0.0

Action handlers are pure functions now, i.e. they receive the machine as first argument and do not rely on this context.

Custom machine functions are no longer supported.

Example for a handler before 6.x:

'add todo': function (state, todo) {
  return {
    name: 'idle',
    todos: [...state.todos, todo]
  };
}

Example for a handler function in 6.x:

'add todo': function ({state}, todo) {
  return {
    name: 'idle',
    todos: [...state.todos, todo]
  };
}

Example for an arrow function as handler in 6.x:

'add todo': ({state}, todo) => ({
    name: 'idle',
    todos: [...state.todos, todo]
})
krasimir
published 5.1.1 •

krasimir
published 5.1.0 •

Changelog

Source

5.1.0

Every action now has a dedicated helper to see if it is available in the current machine transition set. For example:

{
  'idle': {
    run: 'running'
  },
  'running': {
    stop: 'idle'
  }
}

// we have
machine.isRunAllowed();
machine.isStopAllowed();
2345
9Next
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc