diff --git a/.github/workflows/platformatic-deploy.yml b/.github/workflows/platformatic-deploy.yml index ce89b6c..0b41aa1 100644 --- a/.github/workflows/platformatic-deploy.yml +++ b/.github/workflows/platformatic-deploy.yml @@ -1,9 +1,8 @@ name: Deploy Platformatic application to the cloud on: - pull_request: - paths-ignore: - - 'docs/**' - - '**.md' + push: + branches: + - 'main' # This allows a subsequently queued workflow run to interrupt previous runs concurrency: @@ -20,33 +19,12 @@ jobs: uses: actions/checkout@v3 - name: npm install --omit=dev run: npm install --omit=dev - - name: Get PR number - id: get_pull_number - run: | - pull_sha=$(jq --raw-output .pull_request.base.sha "$GITHUB_EVENT_PATH") - echo "pull_sha=${pull_sha}" >> $GITHUB_OUTPUT - echo $pull_sha - - uses: neondatabase/delete-branch-by-name-action@main - with: - project_id: ${{ secrets.NEON_PROJECT_ID }} - branch_name: ${{ steps.get_pull_number.outputs.pull_sha }} - api_key: ${{ secrets.NEON_API_KEY }} - - run: sleep 10 - - uses: neondatabase/create-branch-action@v2 - with: - project_id: ${{ secrets.NEON_PROJECT_ID }} - branch_name: ${{ steps.get_pull_number.outputs.pull_sha }} - api_key: ${{ secrets.NEON_API_KEY }} - username: ${{ secrets.DBUSER }} - Password: ${{ secrets.DBPASSWORD }} - id: create-branch - - name: Get DATABASE_URL - run: echo DATABASE_URL=${{ steps.create-branch.outputs.db_url}}/neondb - name: Deploy project uses: platformatic/onestep@latest with: github_token: ${{ secrets.GITHUB_TOKEN }} - platformatic_api_key: ${{ secrets.PLATFORMATIC_API_KEY }} + platformatic_workspace_id: ${{ secrets.PLATFORMATIC_DYNAMIC_WORKSPACE_ID }} + platformatic_workspace_key: ${{ secrets.PLATFORMATIC_DYNAMIC_WORKSPACE_KEY }} platformatic_config_path: ./platformatic.db.json env: PLT_SERVER_LOGGER_LEVEL: info @@ -55,4 +33,4 @@ jobs: PLT_ADMIN_SECRET: ${{ secrets.PLT_ADMIN_SECRET }} PLT_LOCK: ${{ vars.PLT_LOCK }} PLT_LEADER_POLL: ${{ vars.PLT_LEADER_POLL }} - DATABASE_URL: ${{ steps.create-branch.outputs.db_url}}/neondb + DATABASE_URL: ${{ secrets.NEON_DB_URL }} diff --git a/.github/workflows/platformatic-preview.yml b/.github/workflows/platformatic-preview.yml new file mode 100644 index 0000000..143c25a --- /dev/null +++ b/.github/workflows/platformatic-preview.yml @@ -0,0 +1,59 @@ +name: Deploy Platformatic application to the cloud +on: + pull_request: + paths-ignore: + - 'docs/**' + - '**.md' + +# This allows a subsequently queued workflow run to interrupt previous runs +concurrency: + group: "${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}" + cancel-in-progress: true + +jobs: + build_and_deploy: + runs-on: ubuntu-latest + environment: + name: development + steps: + - name: Checkout application project repository + uses: actions/checkout@v3 + - name: npm install --omit=dev + run: npm install --omit=dev + - name: Get PR number + id: get_pull_number + run: | + pull_sha=$(jq --raw-output .pull_request.base.sha "$GITHUB_EVENT_PATH") + echo "pull_sha=${pull_sha}" >> $GITHUB_OUTPUT + echo $pull_sha + - uses: neondatabase/delete-branch-by-name-action@main + with: + project_id: ${{ secrets.NEON_PROJECT_ID }} + branch_name: ${{ steps.get_pull_number.outputs.pull_sha }} + api_key: ${{ secrets.NEON_API_KEY }} + - run: sleep 10 + - uses: neondatabase/create-branch-action@v2 + with: + project_id: ${{ secrets.NEON_PROJECT_ID }} + branch_name: ${{ steps.get_pull_number.outputs.pull_sha }} + api_key: ${{ secrets.NEON_API_KEY }} + username: ${{ secrets.DBUSER }} + Password: ${{ secrets.DBPASSWORD }} + id: create-branch + - name: Get DATABASE_URL + run: echo DATABASE_URL=${{ steps.create-branch.outputs.db_url}}/neondb + - name: Deploy project + uses: platformatic/onestep@latest + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + platformatic_workspace_id: ${{ secrets.PLATFORMATIC_DYNAMIC_WORKSPACE_ID }} + platformatic_workspace_key: ${{ secrets.PLATFORMATIC_DYNAMIC_WORKSPACE_KEY }} + platformatic_config_path: ./platformatic.db.json + env: + PLT_SERVER_LOGGER_LEVEL: info + PORT: 3042 + PLT_SERVER_HOSTNAME: 127.0.0.1 + PLT_ADMIN_SECRET: ${{ secrets.PLT_ADMIN_SECRET }} + PLT_LOCK: ${{ vars.PLT_LOCK }} + PLT_LEADER_POLL: ${{ vars.PLT_LEADER_POLL }} + DATABASE_URL: ${{ steps.create-branch.outputs.db_url}}/neondb diff --git a/package-lock.json b/package-lock.json index ea1b51c..ecfb870 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "c8": "^7.12.0", "cron-parser": "^4.7.1", "fastify-plugin": "^4.5.0", - "platformatic": "^0.17.1" + "platformatic": "^0.19.1" }, "devDependencies": { "@databases/pg": "^5.4.1", @@ -738,9 +738,9 @@ } }, "node_modules/@fastify/jwt": { - "version": "6.7.0", - "resolved": "https://registry.npmjs.org/@fastify/jwt/-/jwt-6.7.0.tgz", - "integrity": "sha512-VSXbh63dG1C2sBtmM/BhFuoklB6OY3r0hkcAzUrc6C0iiv/eAvoAF/utFLO3vJoshsQHDax6+zCe7hG1iZcmyA==", + "version": "6.7.1", + "resolved": "https://registry.npmjs.org/@fastify/jwt/-/jwt-6.7.1.tgz", + "integrity": "sha512-pvRcGeyF2H1U+HXaxlRBd6s1y99vbSZjhpxTWECIGIhMXKRxBTBSUPRF7LJGONlW1/pZstQ0/Dp/ZxBFlDuEnw==", "dependencies": { "@fastify/error": "^3.0.0", "@lukeed/ms": "^2.0.0", @@ -1176,11 +1176,11 @@ } }, "node_modules/@platformatic/authenticate": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/authenticate/-/authenticate-0.17.1.tgz", - "integrity": "sha512-qqzvEvt+5mki17oXTfDItpmrmTBVp1GNeXbb5mwVoShoZgch6zv84JMMUqybmTc9v82FOZ+8CtoZHr+h9gF51w==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/authenticate/-/authenticate-0.19.1.tgz", + "integrity": "sha512-bDxdnqLqVAUTuNCS9sQro3jTySGrA/YimUCGuTpcGmK3Rxx90yTfBnF7gxcIjuECu///QZfbx50YPDDOcx+l3g==", "dependencies": { - "@platformatic/config": "0.17.1", + "@platformatic/config": "0.19.1", "colorette": "^2.0.19", "commist": "^3.2.0", "es-main": "^1.2.0", @@ -1189,22 +1189,52 @@ "undici": "^5.20.0" } }, + "node_modules/@platformatic/client": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/client/-/client-0.19.1.tgz", + "integrity": "sha512-GpYpMQkT4KbPPG9ds94d7LynZ2ahEK7Iz2zEn3Fb3w0o3Xc3i8FK6Gz/JTVJBeWNSvzoxF9akL8MWryTSQEKyg==", + "dependencies": { + "abstract-logging": "^2.0.1", + "undici": "^5.14.0" + } + }, + "node_modules/@platformatic/client-cli": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/client-cli/-/client-cli-0.19.1.tgz", + "integrity": "sha512-D1GWfnamg07B/9BMpyeqKdJAjz9T6gqWCw1c50a9S4H85h3BO7ts6rEk1pHO2MZILXGow6nLrH9CLUanUsHp0w==", + "dependencies": { + "@platformatic/client": "0.19.1", + "@platformatic/metaconfig": "0.19.1", + "abstract-logging": "^2.0.1", + "code-block-writer": "^11.0.3", + "desm": "^1.3.0", + "es-main": "^1.2.0", + "graphql": "^16.6.0", + "help-me": "^4.2.0", + "jsonpointer": "^5.0.1", + "minimist": "^1.2.7", + "undici": "^5.14.0" + }, + "bin": { + "plt-client": "cli.mjs" + } + }, "node_modules/@platformatic/config": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/config/-/config-0.17.1.tgz", - "integrity": "sha512-42tY6LwqEvpldPuehT/fYziNEmqYm/P7oPoJSRCrlgztMc9TMMDSuEGrmiEGbJbOdNSTmqnP20oSIylGBYoH7Q==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/config/-/config-0.19.1.tgz", + "integrity": "sha512-zaI1bN+GTFNOzUCvNbKHrzum7EmkD3RZflFvr8p8bGdEo8Fz8Oin7m+NPzd1uZDvivaBHLKPXYTN5jwN/a65+A==", "dependencies": { - "@platformatic/metaconfig": "0.17.1", - "@platformatic/utils": "0.17.1", + "@platformatic/metaconfig": "0.19.1", + "@platformatic/utils": "0.19.1", "ajv": "^8.12.0", "dotenv": "^16.0.3", "pupa": "^3.1.0" } }, "node_modules/@platformatic/db": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/db/-/db-0.17.1.tgz", - "integrity": "sha512-o5ZOoX+gJtLcIwgt0hl171BonsJHvZDvJgi7RCfeMb8gxMB0lM3f6R6iSuWhYpYn2r9O8l9OqjyOONhaS8Xkmw==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/db/-/db-0.19.1.tgz", + "integrity": "sha512-7eswmQy3WGDI4bCGLpy8+22TP+emi3LJb+LvU/Pk5jQXmfKz9rC+Mqc/vuXnQccjd/w4S3szJ6mlipIAF09/Sg==", "dependencies": { "@fastify/accepts": "^4.1.0", "@fastify/basic-auth": "^5.0.0", @@ -1212,18 +1242,17 @@ "@fastify/deepmerge": "^1.3.0", "@fastify/static": "^6.9.0", "@fastify/swagger": "^8.3.1", - "@platformatic/config": "0.17.1", - "@platformatic/db-authorization": "0.17.1", - "@platformatic/db-core": "0.17.1", - "@platformatic/db-dashboard": "0.17.1", - "@platformatic/service": "0.17.1", - "@platformatic/sql-json-schema-mapper": "0.17.1", - "@platformatic/sql-mapper": "0.17.1", - "@platformatic/utils": "0.17.1", + "@platformatic/config": "0.19.1", + "@platformatic/db-authorization": "0.19.1", + "@platformatic/db-core": "0.19.1", + "@platformatic/db-dashboard": "0.19.1", + "@platformatic/service": "0.19.1", + "@platformatic/sql-json-schema-mapper": "0.19.1", + "@platformatic/sql-mapper": "0.19.1", + "@platformatic/utils": "0.19.1", "camelcase": "^6.3.0", "close-with-grace": "^1.1.0", "commist": "^3.2.0", - "create-platformatic": "0.17.1", "desm": "^1.3.0", "dtsgenerator": "^3.17.0", "env-schema": "^5.2.0", @@ -1237,7 +1266,7 @@ "help-me": "^4.2.0", "minimist": "^1.2.8", "pino": "^8.11.0", - "pino-pretty": "^9.3.0", + "pino-pretty": "^10.0.0", "postgrator": "^7.1.1", "rfdc": "^1.3.0", "rimraf": "^4.1.2", @@ -1245,9 +1274,9 @@ } }, "node_modules/@platformatic/db-authorization": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/db-authorization/-/db-authorization-0.17.1.tgz", - "integrity": "sha512-sK4fcvBAx1h4gFh3qPLyrhz+BqctwwyxOlSWyOqf/zLVjMbtfvCsSFPfrsT7lyetwsWkWBm53XpXTsM2WTT19g==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/db-authorization/-/db-authorization-0.19.1.tgz", + "integrity": "sha512-tIOxXdoB3NfOuALXQDOINrv8lyBV4HpEyj4pux8cNZFt+XR7G0jZwKQVftZj8hXQG1btfVz7j5HNj+kW06DPyw==", "dependencies": { "@fastify/error": "^3.2.0", "@fastify/jwt": "^6.6.0", @@ -1259,21 +1288,36 @@ } }, "node_modules/@platformatic/db-core": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/db-core/-/db-core-0.17.1.tgz", - "integrity": "sha512-Swces5UcmNtsTZXLc6sNkh7k1lx2hFYo3rcm1oyRTYuk/o5oO6yhMAxHM7RmolmZEZnNK9tuIC14+SkbLBKHLQ==", - "dependencies": { - "@platformatic/sql-events": "0.17.1", - "@platformatic/sql-graphql": "0.17.1", - "@platformatic/sql-mapper": "0.17.1", - "@platformatic/sql-openapi": "0.17.1", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/db-core/-/db-core-0.19.1.tgz", + "integrity": "sha512-2ZU+RhN/EsVapGy26/oPkX57NPgK90uxzi0RjIVN264oKgSOpeXwNakl4W29tHgm9zj103I74CeqIqFzNH3JoA==", + "dependencies": { + "@platformatic/sql-events": "0.19.1", + "@platformatic/sql-graphql": "0.19.1", + "@platformatic/sql-mapper": "0.19.1", + "@platformatic/sql-openapi": "0.19.1", "fastify-plugin": "^4.5.0" } }, + "node_modules/@platformatic/db-core/node_modules/@platformatic/sql-graphql": { + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/sql-graphql/-/sql-graphql-0.19.1.tgz", + "integrity": "sha512-JiLzYLekGnMcP5z+PMn8Df3142Jtw90doVLi4snneMZamXuZYeDZvC61vSvMy8pHkxP9PUeA7vJYlAXuiO9/+w==", + "dependencies": { + "@mercuriusjs/federation": "^1.0.1", + "camelcase": "^6.3.0", + "fastify-plugin": "^4.5.0", + "graphql": "^16.6.0", + "graphql-scalars": "^1.20.1", + "graphql-type-json": "^0.3.2", + "inflected": "^2.1.0", + "mercurius": "^12.2.0" + } + }, "node_modules/@platformatic/db-core/node_modules/@platformatic/sql-mapper": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/sql-mapper/-/sql-mapper-0.17.1.tgz", - "integrity": "sha512-VXU+btDVofkCFfIydXPepoRyTpvTRdeoZh3W6cOKwVuM8XrzEybJgQEKBgRnZbQ8L80kIYfdBZDpbAqmQxX7zA==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/sql-mapper/-/sql-mapper-0.19.1.tgz", + "integrity": "sha512-vvU+kqZzH36fHVbl9f6aawYw5CowbCCNNp8upbMy6nerLx4Q4ZRLnebH9LDDbun5IL9qyloiyD0Wt6IBwTDcAw==", "dependencies": { "@databases/mysql": "^5.2.1", "@databases/pg": "^5.4.1", @@ -1285,17 +1329,17 @@ } }, "node_modules/@platformatic/db-dashboard": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/db-dashboard/-/db-dashboard-0.17.1.tgz", - "integrity": "sha512-EIGtlP/kr5UoKJlCQ7rTo8ZlcmlP6JfmRRZpbNJ1oOZWFyx0VN2DPTeXCzvp+zqmg9so71Fl4i6Xyh/oPs7DQw==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/db-dashboard/-/db-dashboard-0.19.1.tgz", + "integrity": "sha512-9rBl6HILgdq1iupcPb4Grf4NKcfdBI/PINc8wUV0Zqe6tmxgRirR2j8blaChMw+YZFYYaCdPk29PCcEdaLxKtA==", "dependencies": { "@fastify/static": "^6.9.0" } }, "node_modules/@platformatic/db/node_modules/@platformatic/sql-mapper": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/sql-mapper/-/sql-mapper-0.17.1.tgz", - "integrity": "sha512-VXU+btDVofkCFfIydXPepoRyTpvTRdeoZh3W6cOKwVuM8XrzEybJgQEKBgRnZbQ8L80kIYfdBZDpbAqmQxX7zA==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/sql-mapper/-/sql-mapper-0.19.1.tgz", + "integrity": "sha512-vvU+kqZzH36fHVbl9f6aawYw5CowbCCNNp8upbMy6nerLx4Q4ZRLnebH9LDDbun5IL9qyloiyD0Wt6IBwTDcAw==", "dependencies": { "@databases/mysql": "^5.2.1", "@databases/pg": "^5.4.1", @@ -1307,9 +1351,9 @@ } }, "node_modules/@platformatic/db/node_modules/glob": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.0.tgz", - "integrity": "sha512-EAZejC7JvnQINayvB/7BJbpZpNOJ8Lrw2OZNEvQxe0vaLn1SuwMcfV7/MNaX8L/T0wmptBFI4YMtDvSBxYDc7w==", + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.2.tgz", + "integrity": "sha512-BTv/JhKXFEHsErMte/AnfiSv8yYOLLiyH2lTg8vn02O21zWFgHPTfxtgn1QRe7NRgggUhC8hacR2Re94svHqeA==", "dependencies": { "fs.realpath": "^1.0.0", "minimatch": "^7.4.1", @@ -1324,9 +1368,9 @@ } }, "node_modules/@platformatic/db/node_modules/minimatch": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.2.tgz", - "integrity": "sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==", + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.3.tgz", + "integrity": "sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -1345,34 +1389,10 @@ "node": ">=8" } }, - "node_modules/@platformatic/db/node_modules/pino-pretty": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-9.4.0.tgz", - "integrity": "sha512-NIudkNLxnl7MGj1XkvsqVyRgo6meFP82ECXF2PlOI+9ghmbGuBUUqKJ7IZPIxpJw4vhhSva0IuiDSAuGh6TV9g==", - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^4.0.1", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" - } - }, "node_modules/@platformatic/db/node_modules/rimraf": { - "version": "4.4.0", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.0.tgz", - "integrity": "sha512-X36S+qpCUR0HjXlkDe4NAOhS//aHH0Z+h8Ckf2auGJk3PTnx5rLmrHkwNdbVQuCSUhOyFrlRvFEllZOYE+yZGQ==", + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-4.4.1.tgz", + "integrity": "sha512-Gk8NlF062+T9CqNGn6h4tls3k6T1+/nXdOcSZVikNVtlRdYpA7wRJJMoXmuvOnLW844rPjdQ7JgXCYM6PPC/og==", "dependencies": { "glob": "^9.2.0" }, @@ -1387,9 +1407,9 @@ } }, "node_modules/@platformatic/metaconfig": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/metaconfig/-/metaconfig-0.17.1.tgz", - "integrity": "sha512-DuwEzTKHrbt0JLQZNrN7MPA9NUMVseUUhKzqnX0F2o+Vx88Pnst+OUYHoKl50p5L7HFBVGM3cvROeiMlpnKHmQ==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/metaconfig/-/metaconfig-0.19.1.tgz", + "integrity": "sha512-yvYLYiyuXeyXqkniyGA0PQqEoBKEPPRBfUWPO2fyFUkZwJC0i6TTNwDGbfki1mPpap7m2Li1A/yIDA1mbxRSTA==", "dependencies": { "@iarna/toml": "^2.2.5", "json5": "^2.2.3", @@ -1398,9 +1418,9 @@ } }, "node_modules/@platformatic/service": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/service/-/service-0.17.1.tgz", - "integrity": "sha512-ZA9K4GNSIWQedJfHubwK7DbZVZ4NuCeaTfSXE5F8w28ZZ8CD4afZz+oNQ/WymxJbYDC04znXWtCP/rapZGHSgw==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/service/-/service-0.19.1.tgz", + "integrity": "sha512-ZBw/2RxfXnv4rUSIM27OjS+JHjL5ZD7P4buJFfYbIt5oXU5NpBKTfw+odtcL26qHJQkBAn7hBzakNmACKLmyjQ==", "dependencies": { "@fastify/accepts": "^4.1.0", "@fastify/autoload": "^5.7.1", @@ -1410,9 +1430,12 @@ "@fastify/restartable": "^1.4.0", "@fastify/static": "^6.9.0", "@fastify/swagger": "^8.3.1", + "@fastify/swagger-ui": "^1.4.0", "@fastify/under-pressure": "^8.2.0", - "@platformatic/config": "0.17.1", - "@platformatic/utils": "0.17.1", + "@mercuriusjs/federation": "^1.0.1", + "@platformatic/client": "0.19.1", + "@platformatic/config": "0.19.1", + "@platformatic/utils": "0.19.1", "close-with-grace": "^1.1.0", "commist": "^3.2.0", "desm": "^1.3.0", @@ -1425,41 +1448,21 @@ "fastify-sandbox": "^0.11.0", "graphql": "^16.6.0", "help-me": "^4.2.0", + "mercurius": "^12.2.0", "minimist": "^1.2.8", "pino": "^8.11.0", - "pino-pretty": "^9.3.0", + "pino-pretty": "^10.0.0", "rfdc": "^1.3.0", "ua-parser-js": "^1.0.33" - } - }, - "node_modules/@platformatic/service/node_modules/pino-pretty": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-9.4.0.tgz", - "integrity": "sha512-NIudkNLxnl7MGj1XkvsqVyRgo6meFP82ECXF2PlOI+9ghmbGuBUUqKJ7IZPIxpJw4vhhSva0IuiDSAuGh6TV9g==", - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^4.0.1", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" }, "bin": { - "pino-pretty": "bin.js" + "plt-service": "service.mjs" } }, "node_modules/@platformatic/sql-events": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/sql-events/-/sql-events-0.17.1.tgz", - "integrity": "sha512-MS9tLGNvVeUbj3q/jWq5PGQiD+7ti+OlwlAY3/DohonOLWFXtdXFzD422K/Q3vRploy4H8eVXlhuz6gw7LqmIQ==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/sql-events/-/sql-events-0.19.1.tgz", + "integrity": "sha512-LPLD8YZAQraG8PkoKlckjlC6KkKrOJVFk6nnQjuKlxoVo2G1HLNKZEFNE4Kmcwb6rofjxDwJ+ERhvB5uzPqAaw==", "dependencies": { "camelcase": "^6.3.0", "fastify-plugin": "^4.5.0", @@ -1483,9 +1486,9 @@ } }, "node_modules/@platformatic/sql-json-schema-mapper": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/sql-json-schema-mapper/-/sql-json-schema-mapper-0.17.1.tgz", - "integrity": "sha512-dzVHWeXSYknXiZ73c/Ul2hHFksv1mbbwEEpPDotebrMQrI9OF6riZW2QjJ9bQPV1n5cVKz0XFIjItj3nXMV/yA==" + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/sql-json-schema-mapper/-/sql-json-schema-mapper-0.19.1.tgz", + "integrity": "sha512-uoud5BqSN+sL2fYWLq6+kcN5ZvQ8yqasQUZc90jwibv9IQ0jr8bz4jQTq9O5MHwqoUpix/0gMK75BmVmIIVAWQ==" }, "node_modules/@platformatic/sql-mapper": { "version": "0.18.0", @@ -1502,32 +1505,32 @@ } }, "node_modules/@platformatic/sql-openapi": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/sql-openapi/-/sql-openapi-0.17.1.tgz", - "integrity": "sha512-r/mtCN/32b9K1Ksy0JBAEix0mHfXBl3/g38o1LYdzuX5biSWcT2j/CSYI/98hoUFstRGn3LUCvYcNOBCxK/Kmw==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/sql-openapi/-/sql-openapi-0.19.1.tgz", + "integrity": "sha512-0v1q2UGcMMhFqxSlN0AWJ4yUYWMTqyJ8Mzh47SeeH5NPgPtIAa3RN1vqHVT0n9f7MjDVb6Zz0wU4P2lerE1PrA==", "dependencies": { "@fastify/deepmerge": "^1.3.0", "@fastify/swagger": "^8.3.1", "@fastify/swagger-ui": "^1.4.0", - "@platformatic/sql-json-schema-mapper": "0.17.1", + "@platformatic/sql-json-schema-mapper": "0.19.1", "camelcase": "^6.3.0", "fastify-plugin": "^4.5.0", "inflected": "^2.1.0" } }, "node_modules/@platformatic/utils": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/@platformatic/utils/-/utils-0.17.1.tgz", - "integrity": "sha512-4pJON9P1BA7SiTO2t8WK9JskFH0AvbJRvrrKmhXSfmIgY5DLJ8qI/ymbcW2FQF4gkuY7Bv15o+gkDbilyHYPIg==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/@platformatic/utils/-/utils-0.19.1.tgz", + "integrity": "sha512-IvpyOSVTLrZ8dGW6lj/50pYAKmp1VkPHCnDHgC9vvkxvsMtTrsl/dORgonP93y678vuoVmd2XvpG7Nde+BJrHw==", "dependencies": { "@fastify/deepmerge": "^1.3.0", "minimatch": "^7.1.1" } }, "node_modules/@platformatic/utils/node_modules/minimatch": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.2.tgz", - "integrity": "sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==", + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.3.tgz", + "integrity": "sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -2594,6 +2597,11 @@ "node": ">=0.10.0" } }, + "node_modules/code-block-writer": { + "version": "11.0.3", + "resolved": "https://registry.npmjs.org/code-block-writer/-/code-block-writer-11.0.3.tgz", + "integrity": "sha512-NiujjUFB4SwScJq2bwbYUtXbZhBSlY6vYzm++3Q6oC+U+injTqfPYFK8wS9COOmb2lueqp0ZRB4nK1VYeHgNyw==" + }, "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -2717,9 +2725,9 @@ } }, "node_modules/create-platformatic": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/create-platformatic/-/create-platformatic-0.17.1.tgz", - "integrity": "sha512-3RhcCV7RU8NLWvkYk+cUIDOeU1pbRc9JcaIn695zW0WG83GvC0Hx1FL60C3HwCJal3S8CRuQxaZjq4QbAWvZAg==", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/create-platformatic/-/create-platformatic-0.19.1.tgz", + "integrity": "sha512-ODxDmCKfyNQnnjxTNgIX1W9z440IahTdcMorbdh4/LxXIBzqxezulzlZiMCJzj1VYGFLcJtFHeGoZ9Xf0OMnfQ==", "dependencies": { "chalk": "^5.2.0", "commist": "^3.2.0", @@ -2734,7 +2742,7 @@ "mkdirp": "^2.1.3", "ora": "^6.1.2", "pino": "^8.11.0", - "pino-pretty": "^9.3.0", + "pino-pretty": "^10.0.0", "pupa": "^3.1.0", "semver": "^7.3.8", "undici": "^5.20.0" @@ -2754,30 +2762,6 @@ "url": "https://github.com/chalk/chalk?sponsor=1" } }, - "node_modules/create-platformatic/node_modules/pino-pretty": { - "version": "9.4.0", - "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-9.4.0.tgz", - "integrity": "sha512-NIudkNLxnl7MGj1XkvsqVyRgo6meFP82ECXF2PlOI+9ghmbGuBUUqKJ7IZPIxpJw4vhhSva0IuiDSAuGh6TV9g==", - "dependencies": { - "colorette": "^2.0.7", - "dateformat": "^4.6.3", - "fast-copy": "^3.0.0", - "fast-safe-stringify": "^2.1.1", - "help-me": "^4.0.1", - "joycon": "^3.1.1", - "minimist": "^1.2.6", - "on-exit-leak-free": "^2.1.0", - "pino-abstract-transport": "^1.0.0", - "pump": "^3.0.0", - "readable-stream": "^4.0.0", - "secure-json-parse": "^2.4.0", - "sonic-boom": "^3.0.0", - "strip-json-comments": "^3.1.1" - }, - "bin": { - "pino-pretty": "bin.js" - } - }, "node_modules/cron-parser": { "version": "4.7.1", "resolved": "https://registry.npmjs.org/cron-parser/-/cron-parser-4.7.1.tgz", @@ -3020,9 +3004,9 @@ "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==" }, "node_modules/dtsgenerator/node_modules/glob": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.0.tgz", - "integrity": "sha512-EAZejC7JvnQINayvB/7BJbpZpNOJ8Lrw2OZNEvQxe0vaLn1SuwMcfV7/MNaX8L/T0wmptBFI4YMtDvSBxYDc7w==", + "version": "9.3.2", + "resolved": "https://registry.npmjs.org/glob/-/glob-9.3.2.tgz", + "integrity": "sha512-BTv/JhKXFEHsErMte/AnfiSv8yYOLLiyH2lTg8vn02O21zWFgHPTfxtgn1QRe7NRgggUhC8hacR2Re94svHqeA==", "dependencies": { "fs.realpath": "^1.0.0", "minimatch": "^7.4.1", @@ -3048,9 +3032,9 @@ } }, "node_modules/dtsgenerator/node_modules/minimatch": { - "version": "7.4.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.2.tgz", - "integrity": "sha512-xy4q7wou3vUoC9k1xGTXc+awNdGaGVHtFUaey8tiX4H1QRc04DZ/rmDFwNm2EBsuYEhAZ6SgMmYf3InGY6OauA==", + "version": "7.4.3", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-7.4.3.tgz", + "integrity": "sha512-5UB4yYusDtkRPbRiy1cqZ1IpGNcJCGlEMG17RKzPddpyiPKoCdwohbED8g4QXT0ewCt8LTkQXuljsUfQ3FKM4A==", "dependencies": { "brace-expansion": "^2.0.1" }, @@ -4677,12 +4661,12 @@ } }, "node_modules/get-jwks": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/get-jwks/-/get-jwks-8.0.3.tgz", - "integrity": "sha512-6JOs58eVF1EGLDePOK/WFq2JQPraUSxDoNpcD4CipSHjvpmxJUVLBntPqYvin/GvXdELb4ZG6OvE8oSE7nztag==", + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/get-jwks/-/get-jwks-8.0.4.tgz", + "integrity": "sha512-N+wLBt5bWwjqkB05yKGL7YpRs40mUQw9M80ROaiR7LpMx3mL+OwgPaYkgVfqhBVwacCMIv8Puuapu4gU6Ofj/Q==", "dependencies": { "jwk-to-pem": "^2.0.4", - "lru-cache": "^7.4.0", + "lru-cache": "^8.0.0", "node-fetch": "^2.6.1" }, "engines": { @@ -4690,11 +4674,11 @@ } }, "node_modules/get-jwks/node_modules/lru-cache": { - "version": "7.18.3", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-7.18.3.tgz", - "integrity": "sha512-jumlc0BIUrS3qJGgIkWZsyfAM7NCWiBcCDhnd+3NNM5KbBmLTgHVfWBcg6W+rLUsIpzpERPsvwUP7CckAQSOoA==", + "version": "8.0.4", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-8.0.4.tgz", + "integrity": "sha512-E9FF6+Oc/uFLqZCuZwRKUzgFt5Raih6LfxknOSAVTjNkrCZkBf7DQCwJxZQgd9l4eHjIJDGR+E+1QKD1RhThPw==", "engines": { - "node": ">=12" + "node": ">=16.14" } }, "node_modules/get-package-type": { @@ -5134,9 +5118,9 @@ } }, "node_modules/human-signals": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.0.tgz", - "integrity": "sha512-zyzVyMjpGBX2+6cDVZeFPCdtOtdsxOeseRhB9tkQ6xXmGUNrcnBzdEKPy3VPNYz+4gy1oukVOXcrJCunSyc6QQ==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-4.3.1.tgz", + "integrity": "sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ==", "engines": { "node": ">=14.18.0" } @@ -5253,28 +5237,28 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, "node_modules/inquirer": { - "version": "9.1.4", - "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-9.1.4.tgz", - "integrity": "sha512-9hiJxE5gkK/cM2d1mTEnuurGTAoHebbkX0BYl3h7iEg7FYfuNIom+nDfBCSWtvSnoSrWCeBxqqBZu26xdlJlXA==", + "version": "9.1.5", + "resolved": "https://registry.npmjs.org/inquirer/-/inquirer-9.1.5.tgz", + "integrity": "sha512-3ygAIh8gcZavV9bj6MTdYddG2zPSYswP808fKS46NOwlF0zZljVpnLCHODDqItWJDbDpLb3aouAxGaJbkxoppA==", "dependencies": { "ansi-escapes": "^6.0.0", - "chalk": "^5.1.2", + "chalk": "^5.2.0", "cli-cursor": "^4.0.0", "cli-width": "^4.0.0", "external-editor": "^3.0.3", "figures": "^5.0.0", "lodash": "^4.17.21", - "mute-stream": "0.0.8", + "mute-stream": "1.0.0", "ora": "^6.1.2", "run-async": "^2.4.0", - "rxjs": "^7.5.7", + "rxjs": "^7.8.0", "string-width": "^5.1.2", "strip-ansi": "^7.0.1", "through": "^2.3.6", - "wrap-ansi": "^8.0.1" + "wrap-ansi": "^8.1.0" }, "engines": { - "node": ">=12.0.0" + "node": ">=14.18.0" } }, "node_modules/inquirer/node_modules/chalk": { @@ -5961,6 +5945,14 @@ "node": ">=6" } }, + "node_modules/jsonpointer": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz", + "integrity": "sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/jsx-ast-utils": { "version": "3.3.3", "resolved": "https://registry.npmjs.org/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz", @@ -6468,9 +6460,9 @@ } }, "node_modules/mkdirp": { - "version": "2.1.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-2.1.5.tgz", - "integrity": "sha512-jbjfql+shJtAPrFoKxHOXip4xS+kul9W3OzfzzrqueWK2QMGon2bFH2opl6W9EagBThjEz+iysyi/swOoVfB/w==", + "version": "2.1.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-2.1.6.tgz", + "integrity": "sha512-+hEnITedc8LAtIP9u3HJDFIdcLV2vXP33sqLLIzkv1Db1zO/1OxbvYf0Y1OC/S/Qo5dxHXepofhmxL02PsKe+A==", "bin": { "mkdirp": "dist/cjs/src/bin.js" }, @@ -6563,9 +6555,12 @@ } }, "node_modules/mute-stream": { - "version": "0.0.8", - "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.8.tgz", - "integrity": "sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==" + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-1.0.0.tgz", + "integrity": "sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA==", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } }, "node_modules/mysql2": { "version": "2.3.3", @@ -7395,17 +7390,17 @@ } }, "node_modules/ora": { - "version": "6.1.2", - "resolved": "https://registry.npmjs.org/ora/-/ora-6.1.2.tgz", - "integrity": "sha512-EJQ3NiP5Xo94wJXIzAyOtSb0QEIAUu7m8t6UZ9krbz0vAJqr92JpcK/lEXg91q6B9pEGqrykkd2EQplnifDSBw==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/ora/-/ora-6.3.0.tgz", + "integrity": "sha512-1/D8uRFY0ay2kgBpmAwmSA404w4OoPVhHMqRqtjvrcK/dnzcEZxMJ+V4DUbyICu8IIVRclHcOf5wlD1tMY4GUQ==", "dependencies": { - "bl": "^5.0.0", "chalk": "^5.0.0", "cli-cursor": "^4.0.0", "cli-spinners": "^2.6.1", "is-interactive": "^2.0.0", "is-unicode-supported": "^1.1.0", "log-symbols": "^5.1.0", + "stdin-discarder": "^0.1.0", "strip-ansi": "^7.0.1", "wcwidth": "^1.0.1" }, @@ -7582,15 +7577,15 @@ "dev": true }, "node_modules/path-scurry": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.6.1.tgz", - "integrity": "sha512-OW+5s+7cw6253Q4E+8qQ/u1fVvcJQCJo/VFD8pje+dbJCF1n5ZRMV2AEHbGp+5Q7jxQIYJxkHopnj6nzdGeZLA==", + "version": "1.6.3", + "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.6.3.tgz", + "integrity": "sha512-RAmB+n30SlN+HnNx6EbcpoDy9nwdpcGPnEKrJnu6GZoDWBdIjo1UQMVtW2ybtC7LC2oKLcMq8y5g8WnKLiod9g==", "dependencies": { "lru-cache": "^7.14.1", "minipass": "^4.0.2" }, "engines": { - "node": ">=14" + "node": ">=16 || 14 >=14.17" }, "funding": { "url": "https://github.com/sponsors/isaacs" @@ -7755,7 +7750,6 @@ "version": "10.0.0", "resolved": "https://registry.npmjs.org/pino-pretty/-/pino-pretty-10.0.0.tgz", "integrity": "sha512-zKFjYXBzLaLTEAN1ayKpHXtL5UeRQC7R3lvhKe7fWs7hIVEjKGG/qIXwQt9HmeUp71ogUd/YcW+LmMwRp4KT6Q==", - "dev": true, "dependencies": { "colorette": "^2.0.7", "dateformat": "^4.6.3", @@ -7987,19 +7981,23 @@ } }, "node_modules/platformatic": { - "version": "0.17.1", - "resolved": "https://registry.npmjs.org/platformatic/-/platformatic-0.17.1.tgz", - "integrity": "sha512-nYV3ybpfvivsL5gDjWDJ3iTTaWgMb0dBrEaj7VgwsRKKxq4STLKigDM7/vBtqyuHonr+NFVCKc8qdRwpD4aVIg==", - "dependencies": { - "@platformatic/authenticate": "0.17.1", - "@platformatic/db": "0.17.1", - "@platformatic/metaconfig": "0.17.1", - "@platformatic/service": "0.17.1", + "version": "0.19.1", + "resolved": "https://registry.npmjs.org/platformatic/-/platformatic-0.19.1.tgz", + "integrity": "sha512-syPOOTsD1mdwL5shZjTihF9AanKjCOrDBnH2t2evo1lrJrdSZt/CrUzXxTYehOMD9RsIBer7/eVZEZt4vl/vnA==", + "dependencies": { + "@platformatic/authenticate": "0.19.1", + "@platformatic/client-cli": "0.19.1", + "@platformatic/db": "0.19.1", + "@platformatic/metaconfig": "0.19.1", + "@platformatic/service": "0.19.1", "colorette": "^2.0.19", "commist": "^3.2.0", + "create-platformatic": "0.19.1", "desm": "^1.3.0", "help-me": "^4.2.0", - "minimist": "^1.2.8" + "minimist": "^1.2.8", + "pino": "^8.11.0", + "pino-pretty": "^10.0.0" }, "bin": { "platformatic": "cli.js", @@ -9107,6 +9105,20 @@ "node": ">= 0.8" } }, + "node_modules/stdin-discarder": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/stdin-discarder/-/stdin-discarder-0.1.0.tgz", + "integrity": "sha512-xhV7w8S+bUwlPTb4bAOUQhv8/cSS5offJuX8GQGq32ONF0ZtDWKfkdomM3HMRA+LhX6um/FZ0COqlwsjD53LeQ==", + "dependencies": { + "bl": "^5.0.0" + }, + "engines": { + "node": "^12.20.0 || ^14.13.1 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/steed": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/steed/-/steed-1.1.3.tgz", @@ -11671,9 +11683,9 @@ } }, "node_modules/type-fest": { - "version": "3.6.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.6.1.tgz", - "integrity": "sha512-htXWckxlT6U4+ilVgweNliPqlsVSSucbxVexRYllyMVJDtf5rTjv6kF/s+qAd4QSL1BZcnJPEJavYBPQiWuZDA==", + "version": "3.7.1", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.7.1.tgz", + "integrity": "sha512-8LZNdvuztgxCF4eYpEmPYUPS0lbbByM2qHcp2oMxHZhWLIQB9QE36EeQ1PKwsUIDZXEP8HCBEmkBbT1//kLU4Q==", "engines": { "node": ">=14.16" }, diff --git a/package.json b/package.json index c4d8d26..0d70ab1 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "c8": "^7.12.0", "cron-parser": "^4.7.1", "fastify-plugin": "^4.5.0", - "platformatic": "^0.17.1" + "platformatic": "^0.19.1" }, "engines": { "node": "^16.17.0 || ^18.8.0 || >=19" diff --git a/platformatic.db.json b/platformatic.db.json index 3f4afb7..0eb0f46 100644 --- a/platformatic.db.json +++ b/platformatic.db.json @@ -1,5 +1,5 @@ { - "$schema": "https://platformatic.dev/schemas/v0.17.0/db", + "$schema": "https://platformatic.dev/schemas/v0.19.0/db", "server": { "hostname": "{PLT_SERVER_HOSTNAME}", "port": "{PORT}", @@ -7,12 +7,6 @@ "level": "{PLT_SERVER_LOGGER_LEVEL}" } }, - "core": { - "connectionString": "{DATABASE_URL}", - "graphql": true, - "openapi": true, - "events": false - }, "authorization": { "adminSecret": "{PLT_ADMIN_SECRET}", "rules": [ @@ -48,5 +42,11 @@ } } ] + }, + "db": { + "connectionString": "{DATABASE_URL}", + "graphql": true, + "openapi": true, + "events": false } } \ No newline at end of file diff --git a/test/helper.js b/test/helper.js index ecd2ead..eb40740 100644 --- a/test/helper.js +++ b/test/helper.js @@ -19,7 +19,7 @@ async function getConfig () { config.server.port = 0 config.server.logger = { level: 'error' } // config.server.logger = false - config.core.connectionString = 'postgres://postgres:postgres@127.0.0.1:5432/postgres' + config.db.connectionString = 'postgres://postgres:postgres@127.0.0.1:5432/postgres' config.migrations.autoApply = true config.types.autogenerate = false config.authorization.adminSecret = adminSecret