@vue/reactivity 3.3.9 → 3.3.10

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.
@@ -418,10 +418,6 @@ export interface WritableComputedOptions<T> {
418
418
  export declare function computed<T>(getter: ComputedGetter<T>, debugOptions?: DebuggerOptions): ComputedRef<T>;
419
419
  export declare function computed<T>(options: WritableComputedOptions<T>, debugOptions?: DebuggerOptions): WritableComputedRef<T>;
420
420
 
421
- type CollectionTypes = IterableCollections | WeakCollections;
422
- type IterableCollections = Map<any, any> | Set<any>;
423
- type WeakCollections = WeakMap<any, any> | WeakSet<any>;
424
-
425
421
  declare const RefSymbol: unique symbol;
426
422
  declare const RawSymbol: unique symbol;
427
423
  export interface Ref<T = any> {
@@ -639,9 +635,9 @@ export type ShallowUnwrapRef<T> = {
639
635
  [K in keyof T]: T[K] extends Ref<infer V> ? V : T[K] extends Ref<infer V> | undefined ? unknown extends V ? undefined : V | undefined : T[K];
640
636
  };
641
637
  export type UnwrapRef<T> = T extends ShallowRef<infer V> ? V : T extends Ref<infer V> ? UnwrapRefSimple<V> : UnwrapRefSimple<T>;
642
- type UnwrapRefSimple<T> = T extends Function | CollectionTypes | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
638
+ type UnwrapRefSimple<T> = T extends Function | BaseTypes | Ref | RefUnwrapBailTypes[keyof RefUnwrapBailTypes] | {
643
639
  [RawSymbol]?: true;
644
- } ? T : T extends ReadonlyArray<any> ? {
640
+ } ? T : T extends Map<infer K, infer V> ? Map<K, UnwrapRefSimple<V>> : T extends WeakMap<infer K, infer V> ? WeakMap<K, UnwrapRefSimple<V>> : T extends Set<infer V> ? Set<UnwrapRefSimple<V>> : T extends WeakSet<infer V> ? WeakSet<UnwrapRefSimple<V>> : T extends ReadonlyArray<any> ? {
645
641
  [K in keyof T]: UnwrapRefSimple<T[K]>;
646
642
  } : T extends object & {
647
643
  [ShallowReactiveMarker]?: never;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vue/reactivity",
3
- "version": "3.3.9",
3
+ "version": "3.3.10",
4
4
  "description": "@vue/reactivity",
5
5
  "main": "index.js",
6
6
  "module": "dist/reactivity.esm-bundler.js",
@@ -36,6 +36,6 @@
36
36
  },
37
37
  "homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
38
38
  "dependencies": {
39
- "@vue/shared": "3.3.9"
39
+ "@vue/shared": "3.3.10"
40
40
  }
41
41
  }