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

pocketbase 0.18.0 #141474

Merged
merged 2 commits into from
Sep 5, 2023
Merged

Conversation

chenrui333
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
> _To update the prebuilt executable you can run `./pocketbase update`._
  • Simplified the serve command to accept domain name(s) as argument to reduce any additional manual hosts setup that sometimes previously was needed when deploying on production (#3190).

    ./pocketbase serve yourdomain.com
  • Added fields wildcard (*) support.

  • Added option to upload a backup file from the Admin UI (#2599).

  • Registered a custom Deflate compressor to speedup (nearly 2-3x) the backups generation for the sake of a small zip size increase.
    Based on several local tests, pb_data of ~500MB (from which ~350MB+ are several hundred small files) results in a ~280MB zip generated for ~11s (previously it resulted in ~250MB zip but for ~35s).

  • Added the application name as part of the autogenerated backup name for easier identification (#3066).

  • Added new SmtpConfig.LocalName option to specify a custom domain name (or IP address) for the initial EHLO/HELO exchange (#3097).
    This is usually required for verification purposes only by some SMTP providers, such as on-premise Gmail SMTP-relay.

  • Added NoDecimal number field option.

  • editor field improvements:

    • Added new "Strip urls domain" option to allow controlling the default TinyMCE urls behavior (default to false for new content).
    • Normalized pasted text while still preserving links, lists, tables, etc. formatting (#3257).
  • Added option to auto generate admin and auth record passwords from the Admin UI.

  • Added JSON validation and syntax highlight for the json field in the Admin UI (#3191).

  • Added datetime filter macros:

    // all macros are UTC based
    @second     - @now second number (0-59)
    @minute     - @now minute number (0-59)
    @hour       - @now hour number (0-23)
    @weekday    - @now weekday number (0-6)
    @day        - @now day number
    @month      - @now month number
    @year       - @now year number
    @todayStart - beginning of the current day as datetime string
    @todayEnd   - end of the current day as datetime string
    @monthStart - beginning of the current month as datetime string
    @monthEnd   - end of the current month as datetime string
    @yearStart  - beginning of the current year as datetime string
    @yearEnd    - end of the current year as datetime string
    
  • Added cron expression macros (#3132):

    @yearly   - "0 0 1 1 *"
    @annually - "0 0 1 1 *"
    @monthly  - "0 0 1 * *"
    @weekly   - "0 0 * * 0"
    @daily    - "0 0 * * *"
    @midnight - "0 0 * * *"
    @hourly   - "0 * * * *"
    
  • ⚠️ Added offset argument Dao.FindRecordsByFilter(collection, filter, sort, limit, offset, [params...]).
    If you don't need an offset, you can set it to 0.

  • To minimize the footguns with Dao.FindFirstRecordByFilter() and Dao.FindRecordsByFilter(), the functions now supports an optional placeholder params argument that is safe to be populated with untrusted user input.
    The placeholders are in the same format as when binding regular SQL parameters.

    // unsanitized and untrusted filter variables
    status := "..."
    author := "..."
    
    app.Dao().FindFirstRecordByFilter("articles", "status={:status} && author={:author}", dbx.Params{
      "status": status,
      "author": author,
    })
    
    app.Dao().FindRecordsByFilter("articles", "status={:status} && author={:author}", "-created", 10, 0, dbx.Params{
      "status": status,
      "author": author,
    })
  • Added JSVM $mails.* binds for the corresponding Go mails package functions.

  • Added JSVM helper crypto primitives under the $security.* namespace:

    $security.md5(text)
    $security.sha256(text)
    $security.sha512(text)
  • ⚠️ Fill the LastVerificationSentAt and LastResetSentAt fields only after a successfull email send (#3121).

  • ⚠️ Skip API fields json transformations for non 20x responses (#3176).

  • ⚠️ Changes to tests.ApiScenario struct:

    • The ApiScenario.AfterTestFunc now receive as 3rd argument *http.Response pointer instead of *echo.Echo as the latter is not really useful in this context.

      // old
      AfterTestFunc: func(t *testing.T, app *tests.TestApp, e *echo.Echo)
      
      // new
      AfterTestFunc: func(t *testing.T, app *tests.TestApp, res *http.Response)
    • The ApiScenario.TestAppFactory now accept the test instance as argument and no longer expect an error as return result (#3025).

      // old
      TestAppFactory: func() (*tests.TestApp, error)
      
      // new
      TestAppFactory: func(t *testing.T) *tests.TestApp

      Returning a nil app instance from the factory results in test failure. You can enforce a custom test failure by calling t.Fatal(err) inside the factory.

  • Bumped the min required TLS version to 1.2 in order to improve the cert reputation score.

  • Reduced the default JSVM prewarmed pool size to 25 to reduce the initial memory consumptions (you can manually adjust the pool size with --hooksPool=50 if you need to, but the default should suffice for most cases).

  • Update gocloud.dev dependency to v0.34 and explicitly set the new NoTempDir fileblob option to prevent the cross-device link error introduced with v0.33.

  • Other minor Admin UI and docs improvements.

@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Sep 5, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Sep 5, 2023

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Sep 5, 2023
@BrewTestBot BrewTestBot added this pull request to the merge queue Sep 5, 2023
Merged via the queue into Homebrew:master with commit 1743936 Sep 5, 2023
12 checks passed
@github-actions github-actions bot added the outdated PR was locked due to age label Oct 6, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 6, 2023
@chenrui333 chenrui333 deleted the bump-pocketbase-0.18.0 branch January 22, 2024 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue outdated PR was locked due to age
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants