Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/mobx/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# mobx

## 6.15.4

### Patch Changes

- [`105c985c71308e439bfeed118fb1ba1eac06824e`](https://github.com/mobxjs/mobx/commit/105c985c71308e439bfeed118fb1ba1eac06824e) [#4650](https://github.com/mobxjs/mobx/pull/4650) Thanks [@kubk](https://github.com/kubk)! - Avoid Rolldown invalid PURE annotation warnings from Babel-generated optional chaining output.

## 6.15.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/mobx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobx",
"version": "6.15.3",
"version": "6.15.4",
"description": "Simple, scalable state management.",
"source": "src/mobx.ts",
"main": "dist/index.js",
Expand Down
3 changes: 2 additions & 1 deletion packages/mobx/src/utils/iterable.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { getGlobal } from "../internal"

// safely get iterator prototype if available
const maybeIteratorPrototype = getGlobal().Iterator?.prototype || {}
const global = getGlobal()
const maybeIteratorPrototype = global.Iterator?.prototype || {}

export function makeIterable<T, TReturn = unknown>(
iterator: Iterator<T>
Expand Down