@lightnet/sveltia-admin 4.0.5 → 4.0.6

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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @lightnet/sveltia-admin
2
2
 
3
+ ## 4.0.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Update dependencies
8
+
9
+ - [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Move `lightnet` from a direct dependency to a peer dependency for `@lightnet/sveltia-admin`.
10
+
11
+ Consumer sites should install `lightnet` directly alongside `@lightnet/sveltia-admin`.
12
+
13
+ - [#387](https://github.com/LightNetDev/LightNet/pull/387) [`d7969dc`](https://github.com/LightNetDev/LightNet/commit/d7969dcaa65417316b129f50602d3473813f52fe) Thanks [@smn-cds](https://github.com/smn-cds)! - Use slugify filenames for R2 uploads
14
+
3
15
  ## 4.0.5
4
16
 
5
17
  ### Patch Changes
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Admin UI for LightNet based on Sveltia CMS.",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
- "version": "4.0.5",
6
+ "version": "4.0.6",
7
7
  "publishConfig": {
8
8
  "access": "public"
9
9
  },
@@ -30,18 +30,19 @@
30
30
  "./config.json.ts": "./src/config.json.ts"
31
31
  },
32
32
  "peerDependencies": {
33
- "astro": "^6.0.0"
33
+ "astro": "^6.0.0",
34
+ "lightnet": "^4.0.0"
34
35
  },
35
36
  "dependencies": {
36
- "@sveltia/cms": "0.156.1",
37
- "lightnet": "^4.0.8"
37
+ "@sveltia/cms": "0.159.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@playwright/test": "^1.59.1",
41
- "astro": "^6.1.8",
42
- "typescript": "^5.9.3",
43
- "vitest": "^4.1.4",
44
- "@internal/e2e-test-utils": "^0.0.1"
41
+ "astro": "^6.2.2",
42
+ "typescript": "^6.0.3",
43
+ "vitest": "^4.1.5",
44
+ "@internal/e2e-test-utils": "^0.0.1",
45
+ "lightnet": "^4.1.0"
45
46
  },
46
47
  "engines": {
47
48
  "node": ">=22"
@@ -163,11 +163,6 @@ function getFileStorage() {
163
163
  media_folder: projectPath("public/files"),
164
164
  public_folder: "/files",
165
165
  hint: `Maximum file size is ${sveltiaAdminConfig.maxFileSize} MB.`,
166
- media_library: {
167
- config: {
168
- max_file_size: sveltiaAdminConfig.maxFileSize * 1000000,
169
- },
170
- },
171
166
  }
172
167
  }
173
168
 
@@ -22,9 +22,11 @@ export function getConfig(
22
22
  stock_assets: {
23
23
  providers: [],
24
24
  },
25
+ all: {
26
+ slugify_filename: true,
27
+ },
25
28
  default: {
26
29
  config: {
27
- slugify_filename: true,
28
30
  max_file_size: sveltiaAdminConfig.maxFileSize * 1024 * 1024,
29
31
  transformations: {
30
32
  raster_image: {