@maizzle/framework 5.2.0 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/package.json +3 -3
- package/src/utils/getConfigByFilePath.js +16 -7
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,30 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [5.2.1] - 2025-06-25
|
|
8
|
+
|
|
9
|
+
This is just a maintenance release to update dependencies.
|
|
10
|
+
|
|
11
|
+
- build(deps): bump posthtml-base-url from 3.1.7 to 3.1.8 9144f5d
|
|
12
|
+
- fix: specify correct posthtml-base-url minimum version f2f8434
|
|
13
|
+
- build(deps): bump posthtml-url-parameters from 3.1.2 to 3.1.3 03a33ea
|
|
14
|
+
- build(deps): bump posthtml-markdownit from 3.1.1 to 3.1.2 142002c
|
|
15
|
+
- build(deps): bump posthtml-fetch from 4.0.2 to 4.0.3 ebbdfd7
|
|
16
|
+
- build(deps): bump posthtml-extra-attributes from 3.1.3 to 3.1.4 fc578ec
|
|
17
|
+
- build(deps): bump posthtml-postcss-merge-longhand from 3.1.3 to 3.1.4 3b10c6f
|
|
18
|
+
|
|
19
|
+
## [5.2.0] - 2025-06-24
|
|
20
|
+
|
|
21
|
+
This release adds support for configuring multiple static asset folders, allowing you to specify multiple directories from which static assets will be copied to the build output.
|
|
22
|
+
|
|
23
|
+
### Added
|
|
24
|
+
|
|
25
|
+
- feature: support an array of objects with source and destination 13d4379
|
|
26
|
+
|
|
27
|
+
### Fixed
|
|
28
|
+
|
|
29
|
+
- fix: ignoring production folders as static files sources for server a3e4044
|
|
30
|
+
|
|
7
31
|
## [5.1.0] - 2025-06-13
|
|
8
32
|
|
|
9
33
|
This release adds support for using Tailwind CSS color opacity modifiers in Gmail by automatically converting modern rgb/a syntax to the legacy, comma-separated syntax.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maizzle/framework",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"description": "Maizzle is a framework that helps you quickly build HTML emails with Tailwind CSS.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"postcss-safe-parser": "^7.0.0",
|
|
77
77
|
"posthtml": "^0.16.6",
|
|
78
78
|
"posthtml-attrs-parser": "^1.1.1",
|
|
79
|
-
"posthtml-base-url": "^3.1.
|
|
79
|
+
"posthtml-base-url": "^3.1.8",
|
|
80
80
|
"posthtml-component": "^2.1.0",
|
|
81
81
|
"posthtml-content": "^2.1.0",
|
|
82
82
|
"posthtml-expressions": "^1.11.4",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"ws": "^8.18.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
|
-
"@biomejs/biome": "2.
|
|
100
|
+
"@biomejs/biome": "2.1.1",
|
|
101
101
|
"@types/js-beautify": "^1.14.3",
|
|
102
102
|
"@types/markdown-it": "^14.1.2",
|
|
103
103
|
"@vitest/coverage-v8": "^3.0.4",
|
|
@@ -118,16 +118,25 @@ export async function readFileConfig(config) {
|
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
/**
|
|
121
|
-
* Override the `content` key in `baseConfig` with the one in `envConfig
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* order to avoid compiling unnecessary files.
|
|
121
|
+
* Override the `build.content` key in `baseConfig` with the one in `envConfig`
|
|
122
|
+
* if present. We do this so that each build uses its own `content` paths,
|
|
123
|
+
* in order to avoid compiling unnecessary files.
|
|
125
124
|
*/
|
|
126
|
-
if (Array.isArray(envConfig.content)) {
|
|
127
|
-
baseConfig.
|
|
125
|
+
if (envConfig.build && Array.isArray(envConfig.build.content)) {
|
|
126
|
+
baseConfig.build = baseConfig.build || {}
|
|
127
|
+
baseConfig.build.content = envConfig.build.content
|
|
128
|
+
// Remove build.content from envConfig to prevent merging duplicates
|
|
129
|
+
envConfig = { ...envConfig, build: { ...envConfig.build, content: undefined } }
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Merge envConfig and baseConfig, but ensure build.content is not duplicated
|
|
133
|
+
const merged = merge(envConfig, baseConfig)
|
|
134
|
+
|
|
135
|
+
if (baseConfig.build && Array.isArray(baseConfig.build.content)) {
|
|
136
|
+
merged.build.content = baseConfig.build.content
|
|
128
137
|
}
|
|
129
138
|
|
|
130
|
-
return
|
|
139
|
+
return merged
|
|
131
140
|
} catch (_error) {
|
|
132
141
|
throw new Error('Could not compute config')
|
|
133
142
|
}
|