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

fix(deps): update module github.com/pocketbase/pocketbase to v0.23.3 #72

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Nov 26, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
github.com/pocketbase/pocketbase v0.22.27 -> v0.23.3 age adoption passing confidence

Release Notes

pocketbase/pocketbase (github.com/pocketbase/pocketbase)

v0.23.3

Compare Source

  • Fixed Gzip middleware not applying when serving static files.

  • Fixed Record.Fresh()/Record.Clone() methods not properly cloning autodate fields (#​5973).

v0.23.2

Compare Source

  • Fixed RecordQuery() custom struct scanning (#​5958).

  • Fixed --dev log query print formatting.

  • Added support for passing more than one id in the Hook.Unbind method for consistency with the router.

  • Added collection rules change list in the confirmation popup
    (to avoid getting anoying during development, the rules confirmation currently is enabled only when using https).

v0.23.1

Compare Source

  • Added RequestEvent.Blob(status, contentType, bytes) response write helper (#​5940).

  • Added more descriptive error messages.

v0.23.0

Compare Source

[!NOTE]
You don't have to upgrade to PocketBase v0.23.0 if you are not planning further developing
your existing app and/or are satisfied with the v0.22.x features set. There are no identified critical issues
with PocketBase v0.22.x yet and in the case of critical bugs and security vulnerabilities, the fixes
will be backported for at least until Q1 of 2025 (if not longer).

If you don't plan upgrading make sure to pin the SDKs version to their latest PocketBase v0.22.x compatible:

  • JS SDK: <0.22.0
  • Dart SDK: <0.19.0

[!CAUTION]
This release introduces many Go/JSVM and Web APIs breaking changes!

Existing pb_data will be automatically upgraded with the start of the new executable,
but custom Go or JSVM (pb_hooks, pb_migrations) and JS/Dart SDK code will have to be migrated manually.
Please refer to the below upgrade guides:

If you had already switched to some of the earlier <v0.23.0-rc14 versions and have generated a full collections snapshot migration (aka. ./pocketbase migrate collections), then you may have to regenerate the migration file to ensure that it includes the latest changes.

PocketBase v0.23.0 is a major refactor of the internals with the overall goal of making PocketBase an easier to use Go framework.
There are a lot of changes but to highlight some of the most notable ones:

  • New and more detailed documentation.
    The old documentation could be accessed at pocketbase.io/old.
  • Replaced echo with a new router built on top of the Go 1.22 net/http mux enhancements.
  • Merged daos packages in core.App to simplify the DB operations (the models package structs are also migrated in core).
  • Option to specify custom DBConnect function as part of the app configuration to allow different database/sql SQLite drivers (turso/libsql, sqlcipher, etc.) and custom builds.
    Note that we no longer loads the mattn/go-sqlite3 driver by default when building with CGO_ENABLED=1 to avoid multiple definition linker errors in case different CGO SQLite drivers or builds are used. You can find an example how to enable it back if you want to in the new documentation.
  • New hooks allowing better control over the execution chain and error handling (including wrapping an entire hook chain in a single DB transaction).
  • Various Record model improvements (support for get/set modifiers, simplfied file upload by treating the file(s) as regular field value like record.Set("document", file), etc.).
  • Dedicated fields structs with safer defaults to make it easier creating/updating collections programmatically.
  • Option to mark field as "Hidden", disallowing regular users to read or modify it (there is also a dedicated Record hook to hide/unhide Record fields programmatically from a single place).
  • Option to customize the default system collection fields (id, email, password, etc.).
  • Admins are now system _superusers auth records.
  • Builtin rate limiter (supports tags, wildcards and exact routes matching).
  • Batch/transactional Web API endpoint.
  • Impersonate Web API endpoint (it could be also used for generating fixed/non-refreshable superuser tokens, aka. "API keys").
  • Support for custom user request activity log attributes.
  • One-Time Password (OTP) auth method (via email code).
  • Multi-Factor Authentication (MFA) support (currently requires any 2 different auth methods to be used).
  • Support for Record "proxy/projection" in preparation for the planned autogeneration of typed Go record models.
  • Linear OAuth2 provider (#​5909; thanks @​chnfyi).
  • WakaTime OAuth2 provider (#​5829; thanks @​tigawanna).
  • Notion OAuth2 provider (#​4999; thanks @​s-li1).
  • monday.com OAuth2 provider (#​5346; thanks @​Jaytpa01).
  • New Instagram provider compatible with the new Instagram Login APIs (#​5588; thanks @​pnmcosta).
    The provider key is instagram2 to prevent conflicts with existing linked users.
  • Option to retrieve the OIDC OAuth2 user info from the id_token payload for the cases when the provider doesn't have a dedicated user info endpoint.
  • Various minor UI improvements (recursive Presentable view, slightly different collection options organization, zoom/pan for the logs chart, etc.)
  • and many more...
Go/JSVM APIs changes
SDKs changes
Web APIs changes
  • New POST /api/batch endpoint.

  • New GET /api/collections/meta/scaffolds endpoint.

  • New DELETE /api/collections/{collection}/truncate endpoint.

  • New POST /api/collections/{collection}/request-otp endpoint.

  • New POST /api/collections/{collection}/auth-with-otp endpoint.

  • New POST /api/collections/{collection}/impersonate/{id} endpoint.

  • ⚠️ If you are constructing requests to /api/* routes manually remove the trailing slash (there is no longer trailing slash removal middleware registered by default).

  • ⚠️ Removed /api/admins/* endpoints because admins are converted to _superusers auth collection records.

  • ⚠️ Previously when uploading new files to a multiple file field, new files were automatically appended to the existing field values.
    This behaviour has changed with v0.23+ and for consistency with the other multi-valued fields when uploading new files they will replace the old ones. If you want to prepend or append new files to an existing multiple file field value you can use the + prefix or suffix:

    "documents": [file1, file2]  // => [file1_name, file2_name]
    "+documents": [file1, file2] // => [file1_name, file2_name, old1_name, old2_name]
    "documents+": [file1, file2] // => [old1_name, old2_name, file1_name, file2_name]
  • ⚠️ Removed GET /records/{id}/external-auths and DELETE /records/{id}/external-auths/{provider} endpoints because this is now handled by sending list and delete requests to the _externalAuths collection.

  • ⚠️ Changes to the app settings model fields and response (+new options such as trustedProxy, rateLimits, batch, etc.). The app settings Web APIs are mostly used by the Dashboard UI and rarely by the end users, but if you want to check all settings changes please refer to the Settings Go struct.

  • ⚠️ New flatten Collection model and fields structure. The Collection model Web APIs are mostly used by the Dashboard UI and rarely by the end users, but if you want to check all changes please refer to the Collection Go struct.

  • ⚠️ The top level error response code key was renamed to status for consistency with the Go APIs.
    The error field key remains code:

    {
        "status": 400, // <-- old: "code"
        "message": "Failed to create record.",
        "data": {
            "title": {
                "code": "validation_required",
                "message": "Missing required value."
            }
        }
    }
  • ⚠️ New fields in the GET /api/collections/{collection}/auth-methods response.
    The old authProviders, usernamePassword, emailPassword fields are still returned in the response but are considered deprecated and will be removed in the future.

    {
        "mfa": {
            "duration": 100,
            "enabled": true
        },
        "otp": {
            "duration": 0,
            "enabled": false
        },
        "password": {
            "enabled": true,
            "identityFields": ["email", "username"]
        },
        "oauth2": {
            "enabled": true,
            "providers": [{"name": "gitlab", ...}, {"name": "google", ...}]
        },
        // old fields...
    }
  • ⚠️ Soft-deprecated the OAuth2 auth success meta.avatarUrl field in favour of meta.avatarURL.


Configuration

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

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


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

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

Copy link
Contributor Author

renovate bot commented Nov 26, 2024

⚠️ Artifact update problem

Renovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is.

♻ Renovate will retry this branch, including artifacts, only when one of the following happens:

  • any of the package files in this branch needs updating, or
  • the branch becomes conflicted, or
  • you click the rebase/retry checkbox if found above, or
  • you rename this PR's title to start with "rebase!" to trigger it manually

The artifact failure details are included below:

File name: go.sum
Command failed: go get -d -t ./...
go: -d flag is deprecated. -d=true is a no-op
go: downloading github.com/labstack/echo/v5 v5.0.0-20230722203903-ec5b858dab61
go: downloading github.com/a-h/templ v0.2.793
go: downloading github.com/go-ozzo/ozzo-validation/v4 v4.3.0
go: downloading github.com/pocketbase/pocketbase v0.23.3
go: downloading github.com/pocketbase/dbx v1.10.1
go: downloading github.com/spf13/cast v1.7.0
go: downloading github.com/asaskevich/govalidator v0.0.0-20230301143203-a9d515a09cc2
go: downloading golang.org/x/crypto v0.29.0
go: downloading github.com/valyala/fasttemplate v1.2.2
go: downloading golang.org/x/time v0.8.0
go: downloading github.com/fatih/color v1.18.0
go: downloading golang.org/x/oauth2 v0.24.0
go: downloading golang.org/x/sync v0.9.0
go: downloading github.com/golang-jwt/jwt/v4 v4.5.1
go: downloading github.com/AlecAivazis/survey/v2 v2.3.7
go: downloading modernc.org/sqlite v1.34.1
go: downloading github.com/spf13/cobra v1.8.1
go: downloading github.com/valyala/bytebufferpool v1.0.0
go: downloading github.com/mattn/go-colorable v0.1.13
go: downloading github.com/mattn/go-isatty v0.0.20
go: downloading golang.org/x/sys v0.27.0
go: downloading github.com/gabriel-vasile/mimetype v1.4.7
go: downloading github.com/aws/aws-sdk-go-v2 v1.32.5
go: downloading github.com/aws/aws-sdk-go-v2/config v1.28.5
go: downloading github.com/aws/aws-sdk-go-v2/credentials v1.17.46
go: downloading github.com/aws/aws-sdk-go-v2/service/s3 v1.69.0
go: downloading github.com/aws/smithy-go v1.22.1
go: downloading github.com/disintegration/imaging v1.6.2
go: downloading gocloud.dev v0.40.0
go: downloading golang.org/x/net v0.31.0
go: downloading github.com/ganigeorgiev/fexpr v0.4.1
go: downloading github.com/domodwyer/mailyak/v3 v3.6.2
go: downloading github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51
go: downloading golang.org/x/term v0.26.0
go: downloading golang.org/x/text v0.20.0
go: downloading github.com/inconshreveable/mousetrap v1.1.0
go: downloading github.com/spf13/pflag v1.0.5
go: downloading github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.16.20
go: downloading github.com/aws/aws-sdk-go-v2/internal/ini v1.8.1
go: downloading github.com/aws/aws-sdk-go-v2/service/sso v1.24.6
go: downloading github.com/aws/aws-sdk-go-v2/service/ssooidc v1.28.5
go: downloading github.com/aws/aws-sdk-go-v2/service/sts v1.33.1
go: downloading github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream v1.6.7
go: downloading github.com/aws/aws-sdk-go-v2/internal/configsources v1.3.24
go: downloading github.com/aws/aws-sdk-go-v2/internal/v4a v1.3.24
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.12.1
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/checksum v1.4.5
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.12.5
go: downloading github.com/aws/aws-sdk-go-v2/service/internal/s3shared v1.18.5
go: downloading golang.org/x/image v0.22.0
go: downloading github.com/aws/aws-sdk-go-v2/feature/s3/manager v1.17.41
go: downloading go.opencensus.io v0.24.0
go: downloading github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d
go: downloading github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.24
go: downloading golang.org/x/xerrors v0.0.0-20240903120638-7835f813f4da
go: downloading google.golang.org/grpc v1.68.0
go: downloading github.com/googleapis/gax-go/v2 v2.14.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20241118233622-e639e219e697
go: downloading github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
go: downloading google.golang.org/api v0.209.0
go: downloading google.golang.org/protobuf v1.35.2
go: downloading modernc.org/gc/v3 v3.0.0-20241004144649-1aea3fae8852
go: downloading modernc.org/libc v1.61.3
go: downloading github.com/dustin/go-humanize v1.0.1
go: downloading github.com/hashicorp/golang-lru/v2 v2.0.7
go: downloading modernc.org/mathutil v1.6.0
go: downloading modernc.org/strutil v1.2.0
go: downloading modernc.org/token v1.1.0
go: downloading github.com/google/uuid v1.6.0
go: downloading github.com/ncruces/go-strftime v0.1.9
go: downloading golang.org/x/exp v0.0.0-20241108190413-2d47ceb2692f
go: downloading modernc.org/memory v1.8.0
go: downloading github.com/remyoudompheng/bigfft v0.0.0-20230129092748-24d4a6f8daec
go: github.com/depado/pb-templ-htmx-tailwind/components/shared imports
	github.com/pocketbase/pocketbase/models: cannot find module providing package github.com/pocketbase/pocketbase/models
go: github.com/depado/pb-templ-htmx-tailwind/migrations imports
	github.com/pocketbase/pocketbase/daos: cannot find module providing package github.com/pocketbase/pocketbase/daos
go: github.com/depado/pb-templ-htmx-tailwind/migrations imports
	github.com/pocketbase/pocketbase/models/schema: cannot find module providing package github.com/pocketbase/pocketbase/models/schema
go: github.com/depado/pb-templ-htmx-tailwind/router imports
	github.com/pocketbase/pocketbase/tokens: cannot find module providing package github.com/pocketbase/pocketbase/tokens

@renovate renovate bot force-pushed the renovate/github.com-pocketbase-pocketbase-0.x branch 2 times, most recently from 83b6a99 to dbcc8bd Compare November 27, 2024 11:32
@renovate renovate bot changed the title fix(deps): update module github.com/pocketbase/pocketbase to v0.23.1 fix(deps): update module github.com/pocketbase/pocketbase to v0.23.2 Nov 27, 2024
@renovate renovate bot force-pushed the renovate/github.com-pocketbase-pocketbase-0.x branch from dbcc8bd to 9136094 Compare November 29, 2024 14:23
@renovate renovate bot changed the title fix(deps): update module github.com/pocketbase/pocketbase to v0.23.2 fix(deps): update module github.com/pocketbase/pocketbase to v0.23.3 Nov 29, 2024
@renovate renovate bot force-pushed the renovate/github.com-pocketbase-pocketbase-0.x branch from 9136094 to 053a064 Compare November 29, 2024 15:32
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