Vue 2

Frameworks & LibrariesMIT

The Vue 2 line, in long-term maintenance since its end of life in December 2023.

Latest v2.7.16 · by Vue.jsWritten in TypeScriptWebsitevuejs/vueRSS

Changelog

v2.7.16Latest

v2.7.16 "Swan Song"

Fixed 1
  • Ensure component effect scopes are disconnected during lifecycle

From Vue 2

Bug Fixes
  • lifecycle: ensure component effect scopes are disconnected (56ce7f8), closes #13134
View originalPermalink
How v2.7.16 went

v2.7.16-beta.2

Pre-release
Fixed 2
  • Account for nested render calls
  • Export more types for v3 alignment (jsx / component options)

From Vue 2

Bug Fixes
View originalPermalink
How v2.7.16-beta.2 went

v2.7.16-beta.1

Pre-release
Fixed 13
  • Check template ref usage in compiler-sfc
  • Fix rewriteDefault edge cases in compiler-sfc
  • Fix keep-alive memory leak
  • Fix memory leak in keep-alive without breaking transition tests
  • Props should not unwrap props that are raw refs
  • Track value in shallowReactive if already reactive when set

From Vue 2

Bug Fixes
View originalPermalink
How v2.7.16-beta.1 went

v2.7.15

Fixed 8
  • Add semicolon after defineProps statement in compiler-sfc
  • Fix macro usage in multi-variable declaration in compiler-sfc
  • Optimize the value of emitIdentifier in compiler-sfc
  • Resolve object expression parsing errors in v-on in compiler-sfc
  • Fix scope that might change when call hook in lifecycle
  • Clone insert hooks to avoid being mutated during iteration in patch
  • Improve the type inference using withDefaults in types/sfc
  • Correct serverPrefetch this type in types

From Vue 2

Bug Fixes
  • compiler-sfc: add semicolon after defineProps statement (#12879) (51fef2c)
  • compiler-sfc: fix macro usage in multi-variable declaration (#12873) (d27c128)
  • compiler-sfc: Optimize the value of emitIdentifier (#12851) (bb59751)
  • compiler-sfc: Resolve object expression parsing errors in v-on (#12862) (b8c8b3f)
  • lifecycle: scope might changed when call hook (#13070) (74ca5a1)
  • patch: clone insert hooks to avoid being mutated during iteration (#12905) (c223634)
  • types/sfc: improve the type inference using withDefaults (#12872) (099401e)
  • types: correct serverPrefetch this type (#13068) (67c1d26), closes #12488
View originalPermalink
How v2.7.15 went

v2.7.14

Fixed 5
  • Fix template usage check edge case for v-slot destructured default value in compiler-sfc
  • Do not mutate original provide options during merge in provide/inject
  • Avoid using WeakMap for IE compatibility in reactivity
  • Fix spreading VNodeData in tsx types
  • Apply stricter type condition for EventHandlers

From Vue 2

Bug Fixes
  • compiler-sfc: fix template usage check edge case for v-slot destructured default value (#12842) (5e3d4e9), closes #12841
  • provide/inject: do not mutate original provide options during merge (d1899ca), closes #12854
  • reactivity: avoid using WeakMap for IE compatibility (29b5f58), closes #12837
  • types: fix spreading VNodeData in tsx (#12789) (f7db7f3), closes #12778
  • types: stricter type condition for EventHandlers (#12840) (0b3cf7d), closes #12832
View originalPermalink
How v2.7.14 went

v2.7.13

Fixed 3
  • calling off() of a detached scope should not break currentScope in effectScope
  • style attribute svg types
  • avoid traversing objects that are marked non-reactive in watch

From Vue 2

Bug Fixes
  • effectScope: calling off() of a detached scope should not break currentScope (800207c), closes #12825
  • types: style attribute svg (#12800) (8e26261)
  • watch: avoid traversing objects that are marked non-reactive (#12806) (5960f05)
View originalPermalink
How v2.7.13 went

v2.7.12

Fixed 1
  • Revert setup hook being called before beforeCreate to fix regressions in lifecycle ordering

From Vue 2

Reverts
View originalPermalink
How v2.7.12 went

v2.7.11

Changed 1
  • Improve unsubscribe performance for dependencies with a massive amount of subscribers
Fixed 10
  • Enforce LF line ending in built files
  • Export parseComponent from compiler-sfc for compatibility with fork-ts-checker-webpack-plugin
  • Check skip first before checking ref when creating observer
  • Use WeakMap for proxy/raw checks to ensure compatibility with non-extensible objects
  • Call setup hook before beforeCreate
  • Prune returned bindings for non-TypeScript files

From Vue 2

Bug Fixes
  • build: enforce LF line ending in built files (738f4b3), closes #12819
  • compiler-sfc: export parseComponent for compat with fork-ts-checker-webpack-plugin (0d6d972), closes #12719
  • reactivity: check skip first before checking ref when creating observer (#12813) (5d26f81), closes #12812
  • reactivity: use WeakMap for proxy/raw checks, compat with non-extensible objects (4a0d88e), closes #12799 #12798
  • setup: setup hook should be called before beforeCreate (e1342df), closes #12802
  • sfc: prune returned bindings for non-TS as well (fb13930), closes #12765
  • sfc: remove sfc scoped deep syntax deprecation warnings (2f335b2)
  • types: fix error with options watch (#12779) (bc5b92a), closes #12780
  • types: support Ref and function types in tsx ref attribute (#12759) (87f69aa), closes #12758
  • types: vue 3 directive type compatibility (#12792) (27eed82)
Performance Improvements
  • improve unsub perf for deps with massive amount of subs (8880b55), closes #12696
View originalPermalink
How v2.7.11 went

v2.7.10

Fixed 3
  • avoid deindent when lang is jsx/tsx in compiler-sfc
  • fix parent of multi-nested HOC $el not updating
  • add missing type parameter constraints in types

From Vue 2

Bug Fixes
View originalPermalink
How v2.7.10 went

v2.7.9

Added 3
  • Enhance type for onErrorCaptured
  • Export DefineComponent
  • Support mixins inference for new Vue()
Fixed 11
  • Allow full hostnames in asset url base for compiler-sfc
  • Fix rewriteDefault for class with decorators in compiler-sfc
  • Fix directives shorthand normalize error
  • Ensure render watcher of manually created instance is correctly tracked in owner scope
  • Fix effect scope tracking for manually created instances
  • Fix on-component directives rendering in SSR

From Vue 2

Bug Fixes
  • compiler-sfc: allow full hostnames in asset url base (#12732) (5c742eb), closes #12731
  • compiler-sfc: rewriteDefault for class with decorators (#12747) (5221d4d)
  • directives shorthand normalize error (#12744) (2263948), closes #12743
  • ensure render watcher of manually created instance is correctly tracked in owner scope (bd89ce5), closes #12701
  • fix effect scope tracking for manually created instances (7161176), closes #12705
  • ssr: fix on-component directives rendering (#12661) (165a14a), closes #10733
  • types: allow attaching unknown options to defined component (b4bf4c5), closes #12742
  • types: fix missing error for accessing undefined instance properties (8521f9d), closes #12718
  • types: fix options suggestions when using defineComponent (4b37b56), closes #12736
  • types: Make SetupBindings optional on ExtendedVue and CombinedVueInstance (#12727) (00458cd), closes #12726 #12717
  • watch: avoid pre watcher firing on unmount (f0057b1), closes #12703
Features
View originalPermalink
How v2.7.9 went
View all

Discussion

If you publish Vue 2, you can claim this product by proving you administer its repository.