Skip to content

Commit

Permalink
Publish Next Version (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jun 1, 2023
1 parent 8865b9c commit 11479cc
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 21 deletions.
20 changes: 0 additions & 20 deletions .changeset/lazy-buttons-raise.md

This file was deleted.

21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# babel-plugin-un-cjs

## 2.6.0

### Minor Changes

- [`428d52a`](https://github.com/calebeby/babel-plugin-un-cjs/commit/428d52a249b1056177070fcffaf3dfb0a1a64833) Thanks [@calebeby](https://github.com/calebeby)! - Handle edge case: instance methods of `Function.prototype`:

If an imported binding _only_ is referenced using properties of `Function.prototype`, this suggests that the imported binding itself is probably a function instead of a namespace, so we create a default import instead of a namespace import.

```js
var bind = require('function-bind')

bind.call(Function.call, Object.prototype.hasOwnProperty)
```

to

```js
import bind from 'function-bind'
bind.call(Function.call, Object.prototype.hasOwnProperty)
```

## 2.5.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-un-cjs",
"version": "2.5.0",
"version": "2.6.0",
"repository": "calebeby/babel-plugin-un-cjs",
"description": "",
"main": "./dist/index.js",
Expand Down

0 comments on commit 11479cc

Please sign in to comment.