Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: logaretm/vee-validate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.6.9
Choose a base ref
...
head repository: logaretm/vee-validate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.6.10
Choose a head ref
  • 4 commits
  • 13 files changed
  • 2 contributors

Commits on Sep 22, 2022

  1. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    ae5bc9e View commit details
  2. Copy the full SHA
    d6fe4ba View commit details

Commits on Sep 30, 2022

  1. fix: use ssr safe file check

    logaretm committed Sep 30, 2022
    Copy the full SHA
    56663aa View commit details
  2. chore(release): publish

    logaretm committed Sep 30, 2022
    Copy the full SHA
    844faec View commit details
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.6.10](https://github.com/logaretm/vee-validate/compare/v4.6.9...v4.6.10) (2022-09-30)

### Bug Fixes

* use ssr safe file check ([56663aa](https://github.com/logaretm/vee-validate/commit/56663aa2e50d7aa285ca1cb22887c8e8b3f7fd3c))

## [4.6.9](https://github.com/logaretm/vee-validate/compare/v4.6.8...v4.6.9) (2022-09-19)

### Bug Fixes
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
"packages/*"
],
"npmClient": "yarn",
"version": "4.6.9",
"version": "4.6.10",
"useWorkspaces": true,
"command": {
"version": {
4 changes: 4 additions & 0 deletions packages/i18n/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.6.10](https://github.com/logaretm/vee-validate/compare/v4.6.9...v4.6.10) (2022-09-30)

**Note:** Version bump only for package @vee-validate/i18n

## [4.6.9](https://github.com/logaretm/vee-validate/compare/v4.6.8...v4.6.9) (2022-09-19)

**Note:** Version bump only for package @vee-validate/i18n
2 changes: 1 addition & 1 deletion packages/i18n/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vee-validate/i18n",
"version": "4.6.9",
"version": "4.6.10",
"description": "Localization module for VeeValidate",
"author": "Abdelrahman Awad <logaretm1@gmail.com>",
"homepage": "https://vee-validate.logaretm.com/v4/guide/i18n",
8 changes: 6 additions & 2 deletions packages/i18n/src/locale/cs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"code": "cs",
"messages": {
"_default": "Pole {field} není platné",
"alpha": "Pole {field} může obsahovat pouze písmena",
"alpha_num": "Pole {field} může obsahovat pouze alfanumerické znaky",
"alpha_dash": "Pole {field} může obsahovat pouze alfanumerické znaky, pomlčky nebo podtržítka",
@@ -13,6 +14,8 @@
"excluded": "{field} musí být správná hodnota",
"ext": "{field} musí být validní soubor",
"image": "{field} musí být obrázek",
"integer": "Pole {field} musí být celé číslo",
"length": "Pole {field} musí mít délku 0:{délka}",
"max_value": "Pole {field} musí být 0:{max}, nebo mensí",
"max": "{field} nesmí být delší než 0:{length} znaků",
"mimes": "Pole {field} musí být správný typ souboru",
@@ -21,8 +24,9 @@
"numeric": "Pole {field} může obsahovat pouze číslice",
"one_of": "{field} musí být správná hodnota",
"regex": "Pole {field} není vyplněno správně",
"required": "Pole {field} je povinné",
"required_if": "Pole {field} je povinné",
"size": "{field} musí být menší než 0:{size}"
"required": "Pole {field} je povinné",
"size": "Soubor {field} musí být menší než 0:{size}KB",
"url": "Pole {field} není platná adresa URL"
}
}
16 changes: 10 additions & 6 deletions packages/i18n/src/locale/sk.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
{
"code": "sk",
"messages": {
"_default": "Pole {field} nie je platné",
"alpha": "{field} môže obsahovať len písmená",
"alpha_dash": "{field} môže obsahovať len písmená, číslice, bodky a podčiarknutie",
"alpha_num": "{field} môže obsahovať len písmená a číslice",
"alpha_dash": "{field} môže obsahovať len písmená, číslice, bodky a podčiarknutie",
"alpha_spaces": "{field} môže obsahovať len písmená, číslice a medzery",
"between": "Položka {field} musí byť medzi 0:{min} a 1:{max}",
"confirmed": "Hodnota položky {field} nie je rovnaká",
@@ -13,16 +14,19 @@
"excluded": "Položka {field} má nesprávnu hodnotu",
"ext": "{field} nie je platný súbor",
"image": "{field} nie je obrázok",
"one_of": "Položka {field} má nesprávnu hodnotu",
"max": "Položka {field} môže obsahovať najviac 0:{length} znakov",
"integer": "Pole {field} musí byť celé číslo",
"length": "Pole {field} musí mať dĺžku 0:{length}",
"max_value": "Položka {field} musí byť maximálne 0:{max}",
"max": "Položka {field} môže obsahovať najviac 0:{length} znakov",
"mimes": "Položka {field} obsahuje nesprávny typ súboru",
"min": "Položka {field} musí obsahovať minimálne 0:{length} znakov",
"min_value": "Položka {field} musí byť minimálne 0:{min}",
"min": "Položka {field} musí obsahovať minimálne 0:{length} znakov",
"numeric": "Položka {field} môže obsahovať len číslice",
"one_of": "Položka {field} má nesprávnu hodnotu",
"regex": "Formát položky {field} je nesprávny",
"required": "Položka {field} je povinná",
"required_if": "Položka {field} je povinná",
"size": "Položka {field} musí byť menej ako 0:{size}KB"
"required": "Položka {field} je povinná",
"size": "Súbor {field} musí byť menší ako 0:{size}KB",
"url": "Pole {field} nie je platná adresa URL"
}
}
4 changes: 4 additions & 0 deletions packages/rules/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.6.10](https://github.com/logaretm/vee-validate/compare/v4.6.9...v4.6.10) (2022-09-30)

**Note:** Version bump only for package @vee-validate/rules

## [4.6.9](https://github.com/logaretm/vee-validate/compare/v4.6.8...v4.6.9) (2022-09-19)

**Note:** Version bump only for package @vee-validate/rules
2 changes: 1 addition & 1 deletion packages/rules/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vee-validate/rules",
"version": "4.6.9",
"version": "4.6.10",
"description": "Form Validation for Vue.js",
"author": "Abdelrahman Awad <logaretm1@gmail.com>",
"license": "MIT",
6 changes: 6 additions & 0 deletions packages/vee-validate/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,12 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.6.10](https://github.com/logaretm/vee-validate/compare/v4.6.9...v4.6.10) (2022-09-30)

### Bug Fixes

* use ssr safe file check ([56663aa](https://github.com/logaretm/vee-validate/commit/56663aa2e50d7aa285ca1cb22887c8e8b3f7fd3c))

## [4.6.9](https://github.com/logaretm/vee-validate/compare/v4.6.8...v4.6.9) (2022-09-19)

### Bug Fixes
2 changes: 1 addition & 1 deletion packages/vee-validate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vee-validate",
"version": "4.6.9",
"version": "4.6.10",
"description": "Form Validation for Vue.js",
"author": "Abdelrahman Awad <logaretm1@gmail.com>",
"license": "MIT",
12 changes: 11 additions & 1 deletion packages/vee-validate/src/utils/assertions.ts
Original file line number Diff line number Diff line change
@@ -2,6 +2,8 @@ import { Locator, YupValidator } from '../types';
import { isCallable, isObject } from '../../../shared';
import { IS_ABSENT } from '../symbols';

export const isClient = typeof window !== 'undefined';

export function isLocator(value: unknown): value is Locator {
return isCallable(value) && !!(value as Locator).__locatorRef;
}
@@ -142,7 +144,7 @@ export function isEqual(a: any, b: any) {

// We added this part for file comparison, arguably a little naive but should work for most cases.
// #3911
if (a instanceof File && b instanceof File) {
if (isFile(a) && isFile(b)) {
if (a.size !== b.size) return false;
if (a.name !== b.name) return false;
if (a.lastModified !== b.lastModified) return false;
@@ -189,3 +191,11 @@ export function isEqual(a: any, b: any) {
// eslint-disable-next-line no-self-compare
return a !== a && b !== b;
}

export function isFile(a: unknown): a is File {
if (!isClient) {
return false;
}

return a instanceof File;
}
4 changes: 4 additions & 0 deletions packages/zod/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.6.10](https://github.com/logaretm/vee-validate/compare/v4.6.9...v4.6.10) (2022-09-30)

**Note:** Version bump only for package @vee-validate/zod

## [4.6.9](https://github.com/logaretm/vee-validate/compare/v4.6.8...v4.6.9) (2022-09-19)

**Note:** Version bump only for package @vee-validate/zod
2 changes: 1 addition & 1 deletion packages/zod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vee-validate/zod",
"version": "4.6.9",
"version": "4.6.10",
"description": "vee-validate integration with zod schema validation",
"author": "Abdelrahman Awad <logaretm1@gmail.com>",
"license": "MIT",