mobx 6.3.10 → 6.3.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # mobx
2
2
 
3
+ ## 6.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [`bf5da6ba`](https://github.com/mobxjs/mobx/commit/bf5da6bad982dc3d955d5f27f7fea6f94b041ea7) [#3239](https://github.com/mobxjs/mobx/pull/3239) Thanks [@bernardobelchior](https://github.com/bernardobelchior)! - Improved `toJS` jsdoc
8
+
3
9
  ## 6.3.10
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,7 @@
1
1
  /**
2
- * Basically, a deep clone, so that no reactive property will exist anymore.
2
+ * Recursively converts an observable to it's non-observable native counterpart.
3
+ * It does NOT recurse into non-observables, these are left as they are, even if they contain observables.
4
+ * Computed and other non-enumerable properties are completely ignored.
5
+ * Complex scenarios require custom solution, eg implementing `toJSON` or using `serializr` lib.
3
6
  */
4
7
  export declare function toJS<T>(source: T, options?: any): T;
@@ -3224,7 +3224,10 @@ function toJSHelper(source, __alreadySeen) {
3224
3224
  }
3225
3225
  }
3226
3226
  /**
3227
- * Basically, a deep clone, so that no reactive property will exist anymore.
3227
+ * Recursively converts an observable to it's non-observable native counterpart.
3228
+ * It does NOT recurse into non-observables, these are left as they are, even if they contain observables.
3229
+ * Computed and other non-enumerable properties are completely ignored.
3230
+ * Complex scenarios require custom solution, eg implementing `toJSON` or using `serializr` lib.
3228
3231
  */
3229
3232
 
3230
3233