Skip to content

Commit

Permalink
Release 0.58 (#1488)
Browse files Browse the repository at this point in the history
## Description

Merge after #1487 

## Steps for reproduction

1. click button
2. expect xyz

## Code Review

- [ ] hi @kof, I need you to do
  - conceptual review (architecture, feature-correctness)
  - detailed review (read every line)
  - test it on preview

## Before requesting a review

- [ ] made a self-review
- [ ] added inline comments where things may be not obvious (the "why",
not "what")

## Before merging

- [ ] tested locally and on preview environment (preview dev login:
5de6)
- [ ] updated [test
cases](https://github.com/webstudio-is/webstudio-builder/blob/main/apps/builder/docs/test-cases.md)
document
- [ ] added tests
- [ ] if any new env variables are added, added them to `.env.example`
and the `builder/env-check.js` if mandatory
  • Loading branch information
istarkov authored Apr 19, 2023
1 parent 8d94459 commit a25f0da
Show file tree
Hide file tree
Showing 22 changed files with 53 additions and 22 deletions.
2 changes: 1 addition & 1 deletion apps/builder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/builder",
"version": "0.57.0",
"version": "0.58.0",
"private": true,
"description": "Webstudio Builder UI as a service",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion packages/asset-uploader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/asset-uploader",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Asset Uploader",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/authorization-token/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/authorization-token",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Authorization Token",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/css-data",
"version": "0.57.0",
"version": "0.58.0",
"description": "CSS Data",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/css-engine",
"version": "0.57.0",
"version": "0.58.0",
"description": "CSS Renderer for Webstudio",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/css-vars/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/css-vars",
"version": "0.57.0",
"version": "0.58.0",
"description": "CSS vars utility",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/dashboard/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/dashboard",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Dashboard",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-system/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/design-system",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Design System",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/eslint-config-custom",
"version": "1.0.4",
"version": "1.0.5",
"main": "index.js",
"license": "MIT",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/fonts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/fonts",
"version": "0.57.0",
"version": "0.58.0",
"description": "Fonts utils",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/generate-arg-types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/generate-arg-types",
"version": "0.57.0",
"version": "0.58.0",
"description": "Generate components property types",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/http-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/http-client",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio HTTP Client",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/icons",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Icons",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/image/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/image",
"version": "0.57.0",
"version": "0.58.0",
"description": "Image optimization",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/jest-config",
"version": "1.0.4",
"version": "1.0.5",
"license": "MIT",
"dependencies": {
"@jest/types": "^29.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/prisma-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/prisma-client",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Prisma layer",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
33 changes: 32 additions & 1 deletion packages/prisma-client/src/prisma.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,40 @@ declare global {
// this fixes the issue with `warn(prisma-client) There are already 10 instances of Prisma Client actively running.`
// explanation here
// https://www.prisma.io/docs/guides/database/troubleshooting-orm/help-articles/nextjs-prisma-client-dev-practices
export const prisma = global.prisma || new PrismaClient({ log: ["query"] });
export const prisma =
global.prisma ||
new PrismaClient({
log: [
{ emit: "event", level: "query" },

{
emit: "stdout",
level: "error",
},
{
emit: "stdout",
level: "info",
},
{
emit: "stdout",
level: "warn",
},
],
});

prisma.$on("query", (e) => {
// Try to minify the query as vercel/new relic log size is limited
// eslint-disable-next-line no-console
console.log(
"Query: " +
e.query
.replace(/"public"\./g, "")
.replace(/"Project"\./g, "")
.replace(/"Build"\./g, "")
.replace(/"AuthorizationToken"\./g, "")
.replace(/"Asset"\./g, "")
);

// eslint-disable-next-line no-console
console.log("Params: " + e.params);
// eslint-disable-next-line no-console
Expand Down
2 changes: 1 addition & 1 deletion packages/project-build/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/project-build",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Project Build",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/project/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/project",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio Project",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-sdk/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/react-sdk",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio JavaScript / TypeScript API",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/trpc-interface/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/trpc-interface",
"version": "0.57.0",
"version": "0.58.0",
"description": "Webstudio TRPC Interface",
"author": "Webstudio <github@webstudio.is>",
"homepage": "https://webstudio.is",
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webstudio-is/tsconfig",
"version": "1.0.4",
"version": "1.0.5",
"private": false,
"main": "index.js",
"files": [
Expand Down

0 comments on commit a25f0da

Please sign in to comment.