High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.
JavaScript campaigncampaign-managementemail-marketingemail-subscriptionlistmonkmailing-listnewsletternewsletter-managementnewsletter-softwareself-hostedsms-gatewaysmtptransactional-emails
Prepare first RC.
Kailash Nadh53d79297ca5b
diff --git a/cmd/install.go b/cmd/install.goindex 46c1c05d..3199e4f8 100644--- a/cmd/install.go+++ b/cmd/install.go@@ -231,7 +231,7 @@ func installTemplates(q *models.Queries) (int, int) {lo.Fatalf("error reading default visual template json: %v", err)}- if err := q.CreateTemplate.Get(&campTplID, "Sample visual template", models.TemplateTypeCampaignVisual, "", visualTpl.ReadBytes(), visualSrc.ReadBytes()); err != nil {+ if _, err := q.CreateTemplate.Exec("Sample visual template", models.TemplateTypeCampaignVisual, "", visualTpl.ReadBytes(), visualSrc.ReadBytes()); err != nil {lo.Fatalf("error creating default campaign template: %v", err)}diff --git a/cmd/upgrade.go b/cmd/upgrade.goindex c74f2c28..5a5bee21 100644--- a/cmd/upgrade.go+++ b/cmd/upgrade.go@@ -40,7 +40,7 @@ var migList = []migFunc{{"v3.0.0", migrations.V3_0_0},{"v4.0.0", migrations.V4_0_0},{"v4.1.0", migrations.V4_1_0},- {"v5.0.0", migrations.V5_0_0},+ {"v5.0.0-rc.1", migrations.V5_0_0_rc1},}// upgrade upgrades the database to the current version by running SQL migration filesdiff --git a/frontend/email-builder/package.json b/frontend/email-builder/package.jsonindex f08c2431..299c684d 100644--- a/frontend/email-builder/package.json+++ b/frontend/email-builder/package.json@@ -1,6 +1,6 @@{- "name": "@usewaypoint/editor-sample",- "version": "0.0.1",+ "name": "@listmonk/email-builder",+ "version": "1.0.0","type": "module","scripts": {"dev": "vite",diff --git a/frontend/email-builder/vite.config.ts b/frontend/email-builder/vite.config.tsindex 300e5bc7..a5dd353f 100644--- a/frontend/email-builder/vite.config.ts+++ b/frontend/email-builder/vite.config.ts@@ -5,12 +5,13 @@ import react from '@vitejs/plugin-react-swc';export default defineConfig({plugins: [react()],define: {- 'process.env.NODE_ENV': '"production"'+ 'process.env.NODE_ENV': '"production"',},build: {lib: {entry: resolve(__dirname, 'src/main.tsx'),name: 'EmailBuilder',+ formats: ['umd'],fileName: (format) => `email-builder.${format}.js`,},minify: 'terser',@@ -27,5 +28,5 @@ export default defineConfig({// },// },// }- }+ },});diff --git a/internal/migrations/v5.0.0.go b/internal/migrations/v5.0.0.goindex 47ac89c2..0f79ee75 100644--- a/internal/migrations/v5.0.0.go+++ b/internal/migrations/v5.0.0.go@@ -8,8 +8,8 @@ import ("github.com/knadh/stuffbin")-// V5_0_0 performs the DB migrations.-func V5_0_0(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {+// V5_0_0_rc1 performs the DB migrations.+func V5_0_0_rc1(db *sqlx.DB, fs stuffbin.FileSystem, ko *koanf.Koanf, lo *log.Logger) error {lo.Println("IMPORTANT: this upgrade might take a while if you have a large database. Please be patient ...")if _, err := db.Exec(`-- Create a new temp materialized view with the fixed query (removing COUNT(*) that returns 1 for NULLs)diff --git a/static/email-templates/default-visual.json b/static/email-templates/default-visual.jsonindex 6b098888..6474bc11 100644--- a/static/email-templates/default-visual.json+++ b/static/email-templates/default-visual.json@@ -57,7 +57,7 @@"padding": { "top": 16, "bottom": 16, "right": 24, "left": 24 }},"props": {- "buttonBackgroundColor": "#2563EB",+ "buttonBackgroundColor": "#0055d4","text": "This is a button","url": "https://listmonk.app"}