@gehdoc/svg-to-video 0.26.0 → 0.26.1

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/README.md CHANGED
@@ -86,7 +86,7 @@ npx @gehdoc/svg-to-video input.svg 60 ./out-dir -d 5 --format apng
86
86
  docker run --rm -v $(pwd):/data:Z gehdoc/svg-to-video /data/input.svg 60 /data/out-dir -d 5 --format gif
87
87
  ```
88
88
 
89
- See [docs/CLI.md](./docs/CLI.md) for full usage, arguments, and options.
89
+ See [docs/CLI.md](./docs/CLI.md) for full usage, arguments, and options. For local building and source execution, see [CONTRIBUTING.md](./CONTRIBUTING.md#commands--testing-strategy).
90
90
 
91
91
  ---
92
92
 
package/dist/src/index.js CHANGED
@@ -4,15 +4,15 @@ import child_process from 'child_process';
4
4
  import puppeteer from 'puppeteer';
5
5
  import { Command } from 'commander';
6
6
  import path from 'path';
7
- import { seekAnimations } from '@shared/animation-engine.js';
7
+ import { seekAnimations } from '#shared/animation-engine.js';
8
8
  import { validateOptions } from './utils/validateOptions.js';
9
- import { analyzeSvgAnimation, parseSvgDimensions, calculateAspectRatio, } from '@shared/analyzeSvgAnimation.js';
9
+ import { analyzeSvgAnimation, parseSvgDimensions, calculateAspectRatio, } from '#shared/analyzeSvgAnimation.js';
10
10
  import { formatRegistry } from './formats/registry.js';
11
11
  import { pkg } from './utils/packageInfo.js';
12
12
  import { JSDOM } from 'jsdom'; // For duration detection in Node environment
13
13
  import { Logger } from './utils/logger.js';
14
14
  import { trackEvent } from './utils/analytics.js';
15
- import { ConversionTracker } from '@shared/rendererTracking.js';
15
+ import { ConversionTracker } from '#shared/rendererTracking.js';
16
16
  const frameFileExtension = 'png';
17
17
  async function main() {
18
18
  const program = new Command();
package/dist/src/mcp.js CHANGED
@@ -8,7 +8,7 @@ import os from 'os';
8
8
  import { execFileSync } from 'child_process';
9
9
  import { fileURLToPath } from 'url';
10
10
  import { JSDOM } from 'jsdom';
11
- import { analyzeSvgAnimation, parseSvgDimensions, calculateAspectRatio, } from '@shared/analyzeSvgAnimation.js';
11
+ import { analyzeSvgAnimation, parseSvgDimensions, calculateAspectRatio, } from '#shared/analyzeSvgAnimation.js';
12
12
  import { isLoggerJsonOutput } from './utils/logger.js';
13
13
  import { trackEvent } from './utils/analytics.js';
14
14
  import { pkg } from './utils/packageInfo.js';
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@gehdoc/svg-to-video",
3
- "version": "0.26.0",
3
+ "version": "0.26.1",
4
4
  "type": "module",
5
5
  "description": "Professional animated SVG to Video (MP4/WebM/MKV/MOV) and Animated Image (aPNG/GIF) converter featuring frame-accurate rendering, CLI automation, and a serverless Web Studio.",
6
6
  "imports": {
7
- "#shared/*": "./dist/shared/*",
8
- "@shared/*": "./dist/shared/*"
7
+ "#shared/*": "./dist/shared/*"
9
8
  },
10
9
  "author": "GehDoc",
11
10
  "repository": {
@@ -61,6 +60,7 @@
61
60
  "tsx": "^4.23.0"
62
61
  },
63
62
  "devDependencies": {
63
+ "@eslint/js": "^9.39.4",
64
64
  "@types/commander": "^2.12.0",
65
65
  "@types/ffprobe-static": "^2.0.3",
66
66
  "@types/jsdom": "^28.0.3",
@@ -68,15 +68,16 @@
68
68
  "@types/pngjs": "^6.0.5",
69
69
  "@vitest/browser-playwright": "4.1.11",
70
70
  "@vitest/coverage-v8": "4.1.11",
71
- "eslint": "^8.0.0",
71
+ "eslint": "^9.39.4",
72
72
  "ffprobe": "^1.1.2",
73
73
  "ffprobe-static": "^3.1.0",
74
+ "globals": "^17.4.0",
74
75
  "husky": "^9.1.7",
75
76
  "lint-staged": "^16.3.2",
76
77
  "pngjs": "^7.0.0",
77
78
  "prettier": "^3.8.1",
78
79
  "prettier-plugin-sh": "^0.19.0",
79
- "typescript": "^5.0.0",
80
+ "typescript": "^6.0.3",
80
81
  "typescript-eslint": "^8.69.0",
81
82
  "vitest": "4.1.11"
82
83
  },
@@ -90,7 +91,7 @@
90
91
  "mcp": "tsx src/mcp.ts",
91
92
  "test:cli": "tsx --test tests/cli.spec.ts",
92
93
  "test:mcp": "tsx --test tests/mcp.spec.ts",
93
- "test:pack": "tsx --test tests/pack.spec.ts",
94
+ "test:pack": "npm run build && tsx --test tests/pack.spec.ts",
94
95
  "test:unit": "tsx --test src/**/*.test.ts tests/**/*.test.ts && vitest run shared/*.test.ts && npm run test:unit -w web",
95
96
  "test": "npm run test:cli && npm run test:mcp && npm run test:pack && npm run test:unit && npm run test:web -w web && npm run test:storybook -w web && npm run test:visual -w web",
96
97
  "type-check": "tsc -p tsconfig.json --noEmit && npm run type-check -w web",