[Snyk] Upgrade @vinejs/vine from 1.4.1 to 1.7.0 #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade @vinejs/vine from 1.4.1 to 1.7.0.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: @vinejs/vine
-
1.7.0 - 2023-11-22
- refactor: changes to vine validator options normalization e85356b
- chore: update list of files to publish e07cb69
- docs(README): remove snyk badge 1b5c497
- docs: update github workflow badge url b39b00c
- chore: pin typescript to 5.2 02c2945
- feat: add weekday and weekend rules 223bb93
- feat: add first set of date validation rules c893f10
- feat: add support for comparing nested values in sameAs and notSameAs rules 628b4c7
- chore: update dependencies and generate types using tsc ce6c52c
- chore: update dependencies cf08e2a
- feat: Serialize messages and fields when converting toJSON 72d098d
- refactor(SimpleMessagesProperty): make fields property optional (#18) 16bd6e8
- Merge pull request #16 from vinejs/snyk-upgrade-ee4daf504d32e111676c4eb19cecf239 5d2a97a
- feat: upgrade camelcase from 7.0.1 to 8.0.0 f98e099
-
1.6.0 - 2023-07-28
- chore: add tsup bundling (#14) 627ee41
-
1.5.3 - 2023-07-25
- refactor: use validator.js specific imports (#13) 459f3e5
-
1.5.2 - 2023-07-19
- refactor: export VineValidator class cfaeeff
- style: format source code 74ca7e0
- chore: update dependencies 9b7bc07
-
1.5.1 - 2023-07-11
- ci: fix failing tests 2f5258c
- ci: remove test.yml workflow file 89efc20
- test: fix failing tests d04800c
- test: add test for extending Vine class a417418
- fix: make schema classes Macroable 41bd3d5
-
1.5.0 - 2023-07-10
- feat: add support for defining static metadata types and validator function 09c4097
- chore: use @ adonisjs/tooling presets for tooling config a02908d
- chore: upgrade japa to v3 4181ee4
- chore: update dependencies f24ebb8
- chore: add labels to exempt from stale and lock bot 92697c4
- docs: fix contributing link fcad2fb
-
1.4.1 - 2023-06-16
- fix: export testing factories ffe8279
from @vinejs/vine GitHub release notesThis release adds support for validating dates in VineJS. You may check the documentation here. https://vinejs.dev/docs/types/date
The
vine.dateschema type accepts a string value formatted as a date and returns an instance of the JavaScript Date object. The reason we accept a string is because the data submitted over an HTTP request will always represent date/datetime as a string.Once you have a date, you may validate it further by comparing it against a fixed value or compare it against values from other fields. You may refer the documentation to view all the available validation rules.
Commits
v1.6.0...v1.7.0
v1.5.3...v1.6.0
v1.5.2...v1.5.3
Full Changelog: v1.5.1...v1.5.2
Full Changelog: v1.5.0...v1.5.1
In VineJS, you can pass runtime metadata to the validation pipeline, which you can access from the validation rules, union predicates, etc. The metadata API was not type-safe until now. However, this release allows you to define the static metadata types and a validation function to validate them at runtime.
One example is the
uniquevalidation rule. You might want the unique validation rule to check all the database rows except the one for the currently logged-in user. In that case, you will pass the currently logged-in userId to the statically compiled validation schema using metadata as follows.However, there is no way to know that
updateUserValidatorneeds the currently logged-in user id to be functional.From
@ vinejs/[email protected], you can use thewithMetaDatamethod to define static types for the metadata a validator accepts. The schema will look as follows.You can pass a callback to
withMetaDatato validate the metadata at runtime if needed.Commits
Full Changelog: v1.4.1...v1.5.0
Full Changelog: v1.4.0...v1.4.1
Commit messages
Package name: @vinejs/vine
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs