Skip to main content

Command Palette

Search for a command to run...

Platformatic v0.15.0

Updated
2 min read
Platformatic v0.15.0

Hi Folks! Platformatic v0.15.0 is out with a new feature and plenty of fixes! Thanks to everybody that contributed!

Docker image

Did you know that we have a Docker Image that you can use to test Platformatic or use as a base image for your production systems? You can find it at https://hub.docker.com/r/platformatic/platformatic.

Platformatic v0.15.0 ships with all the security updates from the Node.js February 2023 Security Releases.

You can use the Platformatic docker image simply by copying over your configuration and all the needed files, like so:

FROM platformatic/platformatic:latest

USER root

WORKDIR /opt/app
COPY migrations migrations
COPY platformatic.db.json platformatic.db.json
COPY plugin.js plugin.js

EXPOSE 3042

ENV PLT_SERVER_HOSTNAME=0.0.0.0
ENV PORT=3042
ENV PLT_SERVER_LOGGER_LEVEL=info
ENV DATABASE_URL=sqlite://./platformatic.db

CMD ["platformatic", "db", "start"]

Allow specifying multiple entities per authorization rules

Very often, we end up writing the same authorization rules over and over again. Instead, it's possible to condense the rule for multiple entities on a single entry:

 {
    "authorization": {
      "jwt": {
        "secret": "supersecret"
      },
      "roleKey": "X-PLATFORMATIC-ROLE",
      "anonymousRole": "anonymous",
      "rules": [{
        "role": "anonymous",
        "entities": ["category", "page"],
        "find": true,
        "delete": false,
        "save": false
      }]
  }
}

This new feature was implemented at https://github.com/platformatic/platformatic/pull/660.

Setup Dashboard on a custom endpoint

It is now possible to specify the path upon which the dashboard is exposed:

{
  "dashboard": {
    "path": "/"
  }
}

This change was implemented by @leorossi in https://github.com/platformatic/platformatic/pull/664.

Multiple bugfixes

  • docs(cli): Remove comment by @rozzilla in https://github.com/platformatic/platformatic/pull/654.

  • Add guide for using adminSecret in https://github.com/platformatic/platformatic/pull/656.

  • fix(db): Properly format entity type name by @rozzilla in https://github.com/platformatic/platformatic/pull/662.

  • fix: add permissions to the GH action workflow script by @ivan-tymoshenko in https://github.com/platformatic/platformatic/pull/676.

  • docs(dashboard): Add info boxes by @rozzilla in https://github.com/platformatic/platformatic/pull/687.

  • feat: add lint as pre-commit hook by @imrishabh18 in https://github.com/platformatic/platformatic/pull/688.

  • docs(schema): Add tip box by @rozzilla in https://github.com/platformatic/platformatic/pull/691.

  • fix(dashboard): Active selector by @rozzilla in https://github.com/platformatic/platformatic/pull/694.

  • Remove wrong loader setup due to introspection order in https://github.com/platformatic/platformatic/pull/692.

  • Consolidate two db/js-api.md and db/programmatic.md in one file in https://github.com/platformatic/platformatic/pull/696.

Full Changelog: https://github.com/platformatic/platformatic/compare/v0.14.0...v0.15.0

Platformatic v0.15.0