0.1.2 • Published 4 years ago

vue-reactivity-polyfill v0.1.2

Weekly downloads
6
License
MIT
Repository
-
Last release
4 years ago

vue-reactivity-polyfill CircleCI

@vue/reactivity can not support no Proxy envs, this pkg ployfill it.

If you want to use with Vue3 to be compatible with IE9+, you need to use vue3-plugin-polyfill too.

Here is a demo, vue-next-demo.

Usage

// add polyfill
// vue-reactivity-polyfill-getownpropertynames is used to
// fix IE Obejct.getOwnPropertyNames(fn) error.
// for bundle, must imported before @vue/reactivity or vue
import 'vue-reactivity-polyfill-getownpropertynames'
import 'vue-reactivity-polyfill'
// use
import { ref } from '@vue/reactivity'
// or
import { ref } from 'vue'

New API

  • get(target, path, defaultValue)
  • set(target, key, val)
  • del(target, key)
  • getLength(target: ArrayLike)

Unsupported Cases

  • Symbol key
  • Array length
  • Dynamic prop, object[key] or array[index]
  • delete
  • objectSpread

More, see proxy-polyfill

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago