Skip to content

v7.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 21 Jan 10:01
· 22 commits to main since this release

Breaking

  • This package is now pure ESM. Please read this.
  • Require Node.js 12 5a83242
  • Require TypeScript 4.1 for the types (#80) 09adad9
  • Accessing array indices were never documented in previous versions, but it worked as 'a.0'. This no longer works. Use 'a[0]' instead.
  • The package now enforces named exports and renamed the methods:
    • const {get} = require('dot-prop')import {getProperty} from 'dot-prop'
    • const {set} = require('dot-prop')import {setProperty} from 'dot-prop'
    • const {has} = require('dot-prop')import {hasProperty} from 'dot-prop'
    • const {delete: delete_} = require('dot-prop')import {deleteProperty} from 'dot-prop'

Improvements

v6.0.1...v7.0.0