Socket
Socket
Sign inDemoInstall

effector

Package Overview
Dependencies
0
Maintainers
5
Versions
270
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1
23242526

0.3.0

Diff

Changelog

Source

effector-vue 20.3.0

  • Add createComponent HOC for TypeScript usage. This HOC provides type-safe properties in vue components.
// component.vue
import {value createStore, value createApi} from 'effector'
import {value createComponent} from 'effector-vue'

const $counter = createStore(0)
const {update} = createApi($counter, {
  update: (_, value: number) => value,
})

export default createComponent(
  {
    name: 'Counter',
    methods: {
      update,
      handleClick() {
        const value = this.$counter + 1 // this.$counter <- number ( typescript tips )
        this.update(value)
      },
    },
  },
  {$counter},
)
drelliot
published 0.2.1 •

Changelog

Source

effector-vue 20.2.1

  • Add typescript typings for object shape, introduced in effector-vue 20.2.0
const counter = createStore(0)

new Vue({
  effector: {
    counter, // would create `counter` in template
  },
})
drelliot
published 0.2.0 •

Changelog

Source

effector-vue 20.2.0

  • Add support for object shape
const counter = createStore(0)

new Vue({
  effector: {
    counter, // would create `counter` in template
  },
})
drelliot
published 0.1.5 •

drelliot
published 0.1.4 •

drelliot
published 0.1.3 •

drelliot
published 0.1.2 •

Changelog

Source

effector-react 20.2.2, effector-vue 20.1.2

  • effector-react, effector-vue and effector itself have compat builds for compatibility with old devices without babel. In such versions, it should import effector/compat, not just effector (Fix #173)
drelliot
published 0.1.1 •

Changelog

Source

effector 20.1.1

  • Add support for IE11 to effector/compat
  • Fix flow typings for sample
  • Allow effector/babel-plugin to work in browser
drelliot
published 0.1.0 •

Changelog

Source

effector 20.1.0

  • Add effector/compat module to use with Smart TV (Chrome 47) apps without babel (fix #152). Starting with this release, the library code is tested by browserstack.com for compatibility with our targets, including smart tv
  • Improve typescript typings for sample (thanks @abliarsar) (PR #156)
  • Fix webpack issue, which generated incorrect code with some ancient targets (IE10)
drelliot
published 0.0.1 •

Changelog

Source

effector-react 20.0.1

  • Fix flow typings for useStoreMap
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