Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Bump pocketbase from 0.18.1 to 0.19.0#46

Closed
dependabot[bot] wants to merge 1 commit intov3-New_Horizonsfrom
dependabot/npm_and_yarn/pocketbase-0.19.0
Closed

Bump pocketbase from 0.18.1 to 0.19.0#46
dependabot[bot] wants to merge 1 commit intov3-New_Horizonsfrom
dependabot/npm_and_yarn/pocketbase-0.19.0

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot Bot commented on behalf of github Oct 19, 2023

Bumps pocketbase from 0.18.1 to 0.19.0.

Release notes

Sourced from pocketbase's releases.

v0.19.0 Release

  • Added pb.filter(rawExpr, params?) helper to construct a filter string with placeholder parameters populated from an object.

    const record = await pb.collection("example").getList(1, 20, {
      // the same as: "title ~ 'te\\'st' && (totalA = 123 || totalB = 123)"
      filter: pb.filter("title ~ {:title} && (totalA = {:num} || totalB = {:num})", { title: "te'st", num: 123 })
    })

    The supported placeholder parameter values are:

    • string (single quotes will be autoescaped)
    • number
    • boolean
    • Date object (will be stringified into the format expected by PocketBase)
    • null
    • anything else is converted to a string using JSON.stringify()

v0.18.3 Release

  • Added optional generic support for the RecordService (#251). This should allow specifying a single TypeScript definition for the client, eg. using type assertion:
    interface Task {
      id:   string;
      name: string;
    }
    interface Post {
    id:     string;
    title:  string;
    active: boolean;
    }
    interface TypedPocketBase extends PocketBase {
    collection(idOrName: string): RecordService // default fallback for any other collection
    collection(idOrName: 'tasks'): RecordService<Task>
    collection(idOrName: 'posts'): RecordService<Post>
    }
    ...
    const pb = new PocketBase('http://127.0.0.1:8090') as TypedPocketBase
    // the same as pb.collection('tasks').getOne<Task>("RECORD_ID")
    await pb.collection('tasks').getOne("RECORD_ID") // -> results in Task
    // the same as pb.collection('posts').getOne<Post>("RECORD_ID")
    await pb.collection('posts').getOne("RECORD_ID") // -> results in Post

... (truncated)

Changelog

Sourced from pocketbase's changelog.

0.19.0

  • Added pb.filter(rawExpr, params?) helper to constructs a filter string with binded placeholder parameters.

    const record = await pb.collection("example").getList(1, 20, {
      // the same as: "title ~ 'te\\'st' && (totalA = 123 || totalB = 123)"
      filter: pb.filter("title ~ {:title} && (totalA = {:num} || totalB = {:num})", { title: "te'st", num: 123 })
    })

    The supported placeholder parameter values are:

    • string (single quotes will be autoescaped)
    • number
    • boolean
    • Date object (will be stringified into the format expected by PocketBase)
    • null
    • anything else is converted to a string using JSON.stringify()

0.18.3

  • Added optional generic support for the RecordService (#251). This should allow specifying a single TypeScript definition for the client, eg. using type assertion:
    interface Task {
      id:   string;
      name: string;
    }
    interface Post {
    id:     string;
    title:  string;
    active: boolean;
    }
    interface TypedPocketBase extends PocketBase {
    collection(idOrName: string): RecordService // default fallback for any other collection
    collection(idOrName: 'tasks'): RecordService<Task>
    collection(idOrName: 'posts'): RecordService<Post>
    }
    ...
    const pb = new PocketBase("http://127.0.0.1:8090") as TypedPocketBase;
    // the same as pb.collection('tasks').getOne<Task>("RECORD_ID")
    await pb.collection('tasks').getOne("RECORD_ID") // -> results in Task

... (truncated)

Commits
  • 98b5fa0 added pb.filter() helper
  • 503f6f1 #251 added optional RecordService generic type
  • d741c3b normalized example quotes
  • 2c7a6b3 added note about the custom request options
  • dec4b18 removed unnecessary ternary condition
  • a857acb updated AsyncAuthStore example
  • 421e15c #249 added support for assigning a Promise as AsyncAuthStore initial value
  • See full diff in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [pocketbase](https://github.com/pocketbase/js-sdk) from 0.18.1 to 0.19.0.
- [Release notes](https://github.com/pocketbase/js-sdk/releases)
- [Changelog](https://github.com/pocketbase/js-sdk/blob/master/CHANGELOG.md)
- [Commits](pocketbase/js-sdk@v0.18.1...v0.19.0)

---
updated-dependencies:
- dependency-name: pocketbase
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added the dependencies Pull requests that update a dependency file label Oct 19, 2023
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: 36787d8
Status: ✅  Deploy successful!
Preview URL: https://2a7889ad.portfolio-c9y.pages.dev
Branch Preview URL: https://dependabot-npm-and-yarn-pock-dhru.portfolio-c9y.pages.dev

View logs

@dependabot @github
Copy link
Copy Markdown
Contributor Author

dependabot Bot commented on behalf of github Dec 11, 2023

Superseded by #63.

@dependabot dependabot Bot closed this Dec 11, 2023
@dependabot dependabot Bot deleted the dependabot/npm_and_yarn/pocketbase-0.19.0 branch December 11, 2023 05:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants