changelogs.md


maxmellon/babel-plugin-existential-operator

Repository  -  API  -  Source

1.0.1

Install dependencies.

1.0.0

This greatly simplifies the logic of the plugin + adds eval tests to make sure the code actually runs!

Special Thanks @shnhrrsn

0.0.7

Reworked transform to use a helper function.

0.0.5

Update modules

0.0.4

Fix: bracket not working.

before

  foo[bar].isNil

after

  foo[bar] === null || foo[bar] === undefined

0.0.3

Fix: this.someVar.isNil not working.

before

  if (this.someVar.isNil) {
    console.log('nil')
  }

  // become

  if (someVar === null || someVar === undefined) {
      console.log('nil')
  }

Revised

  if (this.someVar.isNil) {
    console.log('nil')
  }

  // become

  if (this.someVar === null || this.someVar === undefined) {
      console.log('nil')
  }