Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update npm packages #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore(deps): update npm packages #4

wants to merge 1 commit into from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Aug 16, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@types/node (source) ^18 -> ^18.19.68 age adoption passing confidence
@vinejs/vine ^1.4.0 -> ^1.8.0 age adoption passing confidence
bumpp ^9.1.1 -> ^9.9.2 age adoption passing confidence
changelogen ^0.5.3 -> ^0.5.7 age adoption passing confidence
defu ^6.1.2 -> ^6.1.4 age adoption passing confidence
h3 ^1.6.6 -> ^1.13.0 age adoption passing confidence
vitest (source) ^0.31.4 -> ^0.34.6 age adoption passing confidence

Release Notes

vinejs/vine (@​vinejs/vine)

v1.8.0: Add requiredIf rules

Compare Source

Please check docs to learn how requiredIf rules work. And check this PR to understand the difference between vine.union and requiredIf rules.

Commits
  • feat: implement requiredIf rules (#​42) 893d378
  • chore: update dependencies 81beff7
  • docs: update benchmarks (#​40) 21ac492
  • fix: typo on 'Symbol.for('schema_nme') (#​36) d2a03a3
  • Merge pull request #​39 from nakrovati/fix-lolo32-pr ef50170
  • fix: add joi & ajv to devDeps 200bb39
  • Merge branch 'develop' into fix-lolo32-pr 63c49e2
  • Merge pull request #​33 from nakrovati/develop f94d274
  • chore(benchmarks): add valibot 02ff0a5
  • fix(benchmark): use namespace to import yup d6f5589
  • chore(benchmarks): add ajv and joi benchmark libraries ffb2a4e
What's Changed
New Contributors

Full Changelog: vinejs/vine@v1.7.1...v1.8.0

v1.7.1: Bug fix and performance improvements

Compare Source

  • fix: unix timetamp validation with x format bcebea5
  • style: format source code 9dd9d85
  • chore: update dependencies 6e412b2
  • refactor: performance optimizations 3e35b83
  • chore: update dependencies 4c88fa1
  • refactor: dynamic import node:dns 92a48c8

What's Changed

Full Changelog: vinejs/vine@v1.7.0...v1.7.1

v1.7.0: Support for validating dates

Compare Source

This release adds support for validating dates in VineJS. You may check the documentation here. https://vinejs.dev/docs/types/date

The vine.date schema 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

  • 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

v1.6.0: Bundling with tsup

Compare Source

v1.5.3: Use validator.js specific imports

Compare Source

v1.5.2: Export VineValidator class

Compare Source

  • refactor: export VineValidator class cfaeeff
  • style: format source code 74ca7e0
  • chore: update dependencies 9b7bc07

Full Changelog: vinejs/vine@v1.5.1...v1.5.2

v1.5.1: Fix: Make schema classes Macroable to be extensible

Compare Source

  • 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

Full Changelog: vinejs/vine@v1.5.0...v1.5.1

v1.5.0: Add API to make validation metadata type-safe

Compare Source

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.

Note: The metadata API is kept very simple because only a few schemas might need runtime metadata with a few properties to be functional.

One example is the unique validation 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.

const updateUserValidator = vine.compile(
  vine.object({
    email: vine.string().email().unique((field) => {
      console.log(field.meta.userId)
    }),
  })
)
await updateUserValidator.validate(data, {
  meta: { userId: request.auth.user.id }
})

However, there is no way to know that updateUserValidator needs the currently logged-in user id to be functional.

From @vinejs/[email protected], you can use the withMetaData method to define static types for the metadata a validator accepts. The schema will look as follows.

const updateUserValidator = vine
  .withMetaData<{ userId: number }>()
  .compile(
    vine.object({
      email: vine.string().email().unique((field) => {
        console.log(field.meta.userId)
      }),
    })
  )

You can pass a callback to withMetaData to validate the metadata at runtime if needed.

vine
  .withMetaData<{ userId: number }>((meta) => {
    // validate id and throw an error
 })

Commits

  • 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

Full Changelog: vinejs/vine@v1.4.1...v1.5.0

v1.4.1: Export testing factories

Compare Source

  • fix: export testing factories ffe8279

Full Changelog: vinejs/vine@v1.4.0...v1.4.1

antfu/bumpp (bumpp)

v9.9.2

Compare Source

v9.9.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v9.9.0

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v9.8.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v9.8.0

Compare Source

   🚀 Features
    View changes on GitHub

v9.7.1

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v9.7.0

Compare Source

   🚀 Features
    View changes on GitHub

v9.6.1

Compare Source

   🚀 Features
    View changes on GitHub

v9.6.0

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v9.5.2

Compare Source

   🐞 Bug Fixes
    View changes on GitHub

v9.5.1

Compare Source

   🚀 Features
    View changes on GitHub

v9.5.0

Compare Source

v9.4.2

Compare Source

v9.4.1

Compare Source

v9.4.0

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v9.3.1

Compare Source

   🚀 Features
    View changes on GitHub

v9.3.0

Compare Source

   🚀 Features
   🐞 Bug Fixes
    View changes on GitHub

v9.2.1

Compare Source

   🚀 Features
    View changes on GitHub

v9.2.0

Compare Source

   🚀 Features
    View changes on GitHub
unjs/changelogen (changelogen)

v0.5.7

Compare Source

compare changes

🩹 Fixes
  • bump: Avoid using + for canary suffix (#​224)
❤️ Contributors

v0.5.6

Compare Source

compare changes

🚀 Enhancements
  • Add option to sign git tags (#​117)
  • git: Support parse git messages that have prefix emoji (#​146)
🩹 Fixes
  • github: Use bearer token (#​180)
  • Handle repo name with multiple segments (#​219)
  • Lowercase scope when filtering (#​199)
💅 Refactors
  • Replace execa with execSync (#​222)
  • Use human readable date for canary versions (#​223)
  • Update execCommand (68127be)
🏡 Chore
❤️ Contributors

v0.5.5

Compare Source

compare changes

🚀 Enhancements
🩹 Fixes
  • Extra spaces in contributors and breaking changes (#​134)
  • Repo name with - or . (#​127)
🏡 Chore
❤️ Contributors

v0.5.4

Compare Source

compare changes

🚀 Enhancements
  • Support --publish and --canary (#​123)
🩹 Fixes
  • markdown: Remove unnecessary spaces (#​106)
  • Add missing type export to package.json (#​113)
📖 Documentation
  • Add documentation about --push flag (#​114)
❤️ Contributors
unjs/defu (defu)

v6.1.4

Compare Source

compare changes

🩹 Fixes
  • Merge objects with Module type (#​121)
💅 Refactors
  • Move isPlainObject to _utils to allow testing (e922a16)
  • Make isPlainObject logic more readable (e458b63)
📖 Documentation
🏡 Chore
✅ Tests
  • Improve tests for isPlainObject (b24a213)
❤️ Contributors

v6.1.3

Compare Source

compare changes

🩹 Fixes
  • Only merge plain objects (#​111)
📖 Documentation
📦 Build
  • Backward compatible cjs entry (#​110)
🏡 Chore
🎨 Styles
  • Format with prettier v3 (32650f1)
❤️ Contributors
unjs/h3 (h3)

v1.13.0

Compare Source

compare changes

🚀 Enhancements
🩹 Fixes
  • readRawBody: Handle URLSearchParams (#​888)
❤️ Contributors

v1.12.0

Compare Source

compare changes

🚀 Enhancements
🩹 Fixes
  • getRequestUrl: Forward opts to getRequestProtocol (#​776)
  • readRawBody: Read chunked body (#​652)
  • proxy: Better error when upstream proxy fails (#​746)
  • node: Make sure onBeforeResponse and onAfterResponse are called with error code (#​756)
  • sse: Prevent onClosed from firing twice in EventStream (#​704)
  • plain: Avoid import from unenv internals (#​781)
💅 Refactors
  • session: Remove unnecessary async for clear (#​729)
  • Update unenv import (76736ea)
📖 Documentation
  • Fix typo (#​699)
  • Fix typo (#​707)
  • Fix typo (#​712)
  • Fix typo (#​730)
  • Fix typo (#​732)
  • Remove extra space (#​718)
  • Add semi (#​710)
  • event-handler: Fix typo (#​684)
  • Add jsdoc examples for response utils (#​677)
  • Add note for getRequestIP return value (#​726)
  • Fix session example (#​702)
  • Add jsdoc examples for request utils (#​680)
  • Fix typo (#​734)
  • Correct zod validation example (#​735)
  • Fix typos (#​738)
  • Fix typo (#​758)
  • Add usage example for handleCors (#​747)
  • Fix typo for text/html content-type (#​764)
  • Update mogen example to use combined log format (#​771)
  • Fix typo for plain adapter example (#​766)
  • examples: Add cors example (#​700)
  • Fix respondWith event object (#​775)
  • Provide async for request body (#​777)
  • error-handling: Add string vs object errors and update createError jsdoc (#​762)
🏡 Chore
🤖 CI
  • Remove node 16 from test matrix (458cfac)
❤️ Contributors

v1.11.1

Compare Source

compare changes

🩹 Fixes
  • ws: Resolve pathname for matching (4f211f8)
📖 Documentation
🏡 Chore
❤️ Contributors

v1.11.0

Compare Source

compare changes

🚀 Enhancements
  • Add utilities for server sent events (#​586)
  • response: Add sendIterable util (#​655)
  • Handler resolver (#​669)
  • Websocket support (#​671)
🩹 Fixes
  • serveStatic: Ensure etag header is set before sending 304 response (#​653)
📖 Documentation
🏡 Chore
❤️ Contributors

v1.10.2

Compare Source

compare changes

🩹 Fixes
  • proxy: Ignore incoming accept header (#​646)
❤️ Contributors

v1.10.1

Compare Source

compare changes

🩹 Fixes
  • setResponseHeaders: Fix types to allow partial header names (#​607)
  • setCookie: Allow cookies with the same name but different options (#​606)
  • getRequestWebStream: Reuse buffered body if available (#​616)
  • getSession: Use semaphore lock for unseal operation (#​612)
  • getRequestIP: Use first address of x-forwarded-for header (#​618)
  • Avoid setting default content-type for responses with 304 status (#​641)
💅 Refactors
  • Use H3Event.node.res for internal types (#​626)
📖 Documentation
  • Fix getRequestHeaders signuture (#​613)
  • Fix typo in examples (#​631)
🏡 Chore
✅ Tests
❤️ Contributors

v1.10.0

Compare Source

compare changes

🚀 Enhancements
  • validate: Provide validate error in data (#​594)
🩹 Fixes
  • readRawBody: Check req.rawBody before req.body (#​604)
📖 Documentation
  • Add h3-compression to community packages (#​524)
  • Add examples (#​539)
🌊 Types
  • Add generics to isError and update DataT default generic param (#​582)
  • setResponseHeaders: Add autocompletion for header names (#​601)
🏡 Chore
🤖 CI
  • Fix nightly release job conditional (#​587)
❤️ Contributors

v1.9.0

Compare Source

compare changes

🚀 Enhancements
  • Support auto complete for http header names (#​542)
  • Add getValidatedRouterParams util (#​573)
  • decode option for getRouterParam (#​556)
  • Add getRequestFingerprint util (#​564)
🩹 Fixes
  • sendNoContent: Preserve custom status code if already set (#​577)
📖 Documentation
  • Add @intlify/h3 to community packages (#​559)
  • Improve jsdocs (#​574)
  • Add package pronunciation (#​569)
🌊 Types
  • Add generics to H3Error data and createError (#​566)
🏡 Chore
❤️ Contributors
  • Pooya Parsa (@​pi0)
  • Nandi95
  • Horu
  • Damian Głowala (@​DamianGlowala)
  • Nozomu Ikuta
  • Alexander Lichter (@​manniL)
  • Łukasz Wołodkiewicz
  • Kazuya Kawaguchi <kawakazu80@​gmail.com>
  • Michael Brevard <yonshi29@​gmail.com>

v1.8.2

Compare Source

compare changes

🩹 Fixes
  • getRequestProtocol: Conditionaly check connection?.encrypted (#​532)
🏡 Chore
❤️ Contributors
  • Pooya Parsa (@​pi0)
  • Michael J. Roberts

v1.8.1

Compare Source

compare changes

🩹 Fixes
  • Use safe property checks (#​521)
💅 Refactors
  • Use native Headers and Response for legacy polyfills (#​523)
📖 Documentation
  • Typo for getValidatedQuery (164f68e)
🏡 Chore
✅ Tests

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/npm branch 4 times, most recently from 864ee0c to b83a06f Compare August 23, 2023 02:48
@renovate renovate bot force-pushed the renovate/npm branch 5 times, most recently from d6a5a92 to abdc51c Compare September 1, 2023 04:52
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from 9201409 to 0db6d96 Compare September 5, 2023 20:32
@renovate renovate bot force-pushed the renovate/npm branch 4 times, most recently from 156df04 to 82718d6 Compare September 16, 2023 02:56
@renovate renovate bot force-pushed the renovate/npm branch 6 times, most recently from 67a6b67 to f60fa8c Compare September 24, 2023 05:19
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from 62dae85 to fbd618c Compare September 29, 2023 20:41
@renovate renovate bot force-pushed the renovate/npm branch 2 times, most recently from d965648 to 0f2a7fc Compare October 7, 2023 05:41
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from 3ca02b8 to 049ea58 Compare October 19, 2023 23:19
@renovate renovate bot force-pushed the renovate/npm branch 2 times, most recently from b6065c1 to 81bf355 Compare August 28, 2024 05:15
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from 5621fde to b65a05b Compare September 5, 2024 02:35
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from c117fdf to 9c779da Compare September 26, 2024 08:34
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from dc67422 to 1a2fe5f Compare October 4, 2024 05:29
@renovate renovate bot force-pushed the renovate/npm branch 2 times, most recently from f7ab7a9 to 1337f8e Compare October 10, 2024 02:26
@renovate renovate bot force-pushed the renovate/npm branch 4 times, most recently from 99283bc to a1c93ca Compare October 24, 2024 05:27
@renovate renovate bot force-pushed the renovate/npm branch 5 times, most recently from a5ce98f to 73f1946 Compare November 4, 2024 05:46
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from d65f851 to 2874e48 Compare November 29, 2024 06:00
@renovate renovate bot force-pushed the renovate/npm branch 3 times, most recently from a336e20 to 3d1aca9 Compare December 14, 2024 01:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants