vant/packages/vant/docs/markdown/changelog.en-US.md
2022-09-11 12:08:32 +08:00

8.5 KiB
Raw Blame History

Changelog

Tips

The current document is the changelog of Vant 4, other versions:

Intro

Vant follows Semantic Versioning 2.0.0.

Release Schedule

  • Patch versionreleased weekly, including features and bug fixes.
  • Minor versionreleased every one to two months, including backwards compatible features.
  • Major versionincluding breaking changes and new features.

Details

v4.0.0-rc.2

2022-09-11

Breaking Changes

  • attach css variables to :root element #11026

Bug Fixes

  • Dialog: incorrect transform behavior #11028
  • Empty: fix opacity in dark mode #11027

v4.0.0-rc.1

2022-09-10

Feature

  • export props of all components #11024
  • Dialog: message-align can be justify #11014
  • Image: add block prop #11022
  • Toast: add message slot #11018

Bug Fixes

  • Picker: failed to update value in some cases #11009
  • Locale: avoid getting unexpected value #11010

v4.0.0-rc.0

2022-09-04

New Component

Bug Fixes

  • DatePicker: failed to update model value #10984
  • DatePicker: min-date prop not work correctly #10985

v4.0.0-beta.1

2022-08-24

Breaking Changes

  • Popup: improve style when position is center #10965
// Vant 3
.van-popup--center {
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
}

// Vant 4
.van-popup--center {
  left: 0;
  right: 0;
  width: fit-content;
  max-width: calc(100vw - var(--van-padding-md) * 2);
  margin: 0 auto;
  transform: translateY(-50%);
}

New Component

Feature

  • ConfigProvider: add z-index prop #10915
  • Form: add validateEmpty option of rule #10913
  • Popup: add role and tabindex for a11y #10894
  • TouchEmulator: support .mjs extension #10888

Feature

  • ConfigProvider: add theme-vars-dark and theme-vars-light props #10939
  • Picker: add clickOption event #10865
  • add correct passive flag to improve scroll performance #10951
  • @vant/use: improve useEventListener typing #10952

Bug Fixes

  • ConfigProvider: should remove theme class on unmount #10898
  • reduce passive event warning of touchstart event #10954
  • Tabs: resize not work for swipeable tabs #10964
  • Fix incorrect tag name in WebStorm #10946
  • Badge: should hide string zero when using show-zero prop #10921
  • Calendar: content disappeared when hiding #10910
  • Calendar: reading getFullYear error in some cases #10909
  • Empty: generate unique id to avoid render issue #10943
  • Popover: can not scroll inside popup #10949
  • PullRefresh: fix passive event warning #10938
  • Search: --van-search-input-height var not work #10911

v4.0.0-beta.0

2022-07-16

Breaking Changes

  • Toast: redesign function-call API #10804
  • Dialog: redesign function-call API #10781
  • Notify: redesign function-call API #10782
  • ImagePreview: redesign function-call API #10802

Feature

  • add @vant/compat package #10806
  • Calendar: expose getSelectedDate method 419a8e
  • remove less source file to remove bundle size #10752

Bug Fixes

  • Uploader: should not preview failed images #10790

v4.0.0-alpha.4

2022-05-31

Feature

  • using mjs extension for esmodule #10625

v4.0.0-alpha.3

2022-05-02

Feature

Bug Fixes

  • Search: style error in dark mode #10527
  • @vant/area-data: only publish dist folder to npm f927f6

v4.0.0-alpha.2

2022-04-16

  • CalendarDay: add default margin-bottom #10441
  • Empty: support set the image size separately #10465
  • Field: add enterkeyhint prop #10478
  • Form: add getValues method #10511
  • Icon: add some icons for ShareSheet #10468
  • Locale: add Danish lang #10513
  • ShareSheet: no longer rely on CDN images #10469
  • Add event arguments in web-types.json #10474

Bug Fixes

  • DatetimePicker: modeValue is inconsistent with the selected data #10448
  • Rate: support precisely selected #10500

v4.0.0-alpha.1

2022-03-19

Feature

  • @vant/area-data: update counties of NanJing #10410
  • Locale: add la-LA.ts #10388

Bug Fixes

  • Calendar: fix title color in dark mode #10403
  • Picker: fix title color in dark mode #10403
  • ConfigProvider: dark mode not work as default value #10413
  • DatePicker: failed to update model value #10415
  • Dialog: fix title and message color in dark mode #10379
  • IndexBar: allow active bottom anchor #10404