fontmin-rs 0.3.0 → 1.0.0

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/dist/cli.mjs CHANGED
@@ -1,11 +1,11 @@
1
- import { _ as woffToTtf, a as inspect, b as findConfig, d as ttfToSvg, f as ttfToWoff, g as woff2ToTtf, n as analyzeCoverage, o as otfToTtf, p as ttfToWoff2, r as eotToTtf, s as subsetTtf, t as optimize, u as ttfToEot, x as loadConfig } from "./optimize-pipeline-DuJ2ilJf.mjs";
1
+ import { _ as woffToTtf, a as inspect, b as findConfig, d as ttfToSvg, f as ttfToWoff, g as woff2ToTtf, n as analyzeCoverage, o as otfToTtf, p as ttfToWoff2, r as eotToTtf, s as subsetTtf, t as optimize, u as ttfToEot, x as loadConfig } from "./optimize-pipeline-DYuWMBeb.mjs";
2
2
  import { deliverySlices, glyph, svgs2ttf } from "./plugins.mjs";
3
3
  import { mkdir, readFile, realpath, rm, writeFile } from "node:fs/promises";
4
4
  import { basename, dirname, extname, isAbsolute, parse, relative, resolve, sep } from "node:path";
5
5
  import { glob } from "tinyglobby";
6
6
  //#region src/cli.mjs
7
7
  const INIT_CONFIG_FILE = "fontmin.config.jsonc";
8
- const FONTMIN_VERSION = "0.3.0";
8
+ const FONTMIN_VERSION = "1.0.0";
9
9
  const DEFAULT_CACHE_DIR = "node_modules/.cache/fontmin-rs";
10
10
  let emitWarnings = true;
11
11
  const DEFAULT_INIT_CONFIG = `{
package/dist/compat.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as optimize, y as defineConfig } from "./optimize-pipeline-DuJ2ilJf.mjs";
1
+ import { t as optimize, y as defineConfig } from "./optimize-pipeline-DYuWMBeb.mjs";
2
2
  import { css, deliverySlices, glyph, otf2ttf, svg2ttf, svgs2ttf, ttf2eot, ttf2svg, ttf2woff, ttf2woff2 } from "./plugins.mjs";
3
3
  //#region src/compat.ts
4
4
  var FontminCompat = class {
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as woffToTtf, a as inspect, c as svgFontToTtf, d as ttfToSvg, f as ttfToWoff, g as woff2ToTtf, h as validateWoff2, i as generateFontFaceCss, l as svgsToTtf, m as ttfToWoff2Async, n as analyzeCoverage, o as otfToTtf, p as ttfToWoff2, r as eotToTtf, s as subsetTtf, t as optimize, u as ttfToEot, v as FontminDiagnosticError, x as loadConfig, y as defineConfig } from "./optimize-pipeline-DuJ2ilJf.mjs";
1
+ import { _ as woffToTtf, a as inspect, c as svgFontToTtf, d as ttfToSvg, f as ttfToWoff, g as woff2ToTtf, h as validateWoff2, i as generateFontFaceCss, l as svgsToTtf, m as ttfToWoff2Async, n as analyzeCoverage, o as otfToTtf, p as ttfToWoff2, r as eotToTtf, s as subsetTtf, t as optimize, u as ttfToEot, v as FontminDiagnosticError, x as loadConfig, y as defineConfig } from "./optimize-pipeline-DYuWMBeb.mjs";
2
2
  import { css, definePlugin, deliverySlices, glyph, modernWeb, otf2ttf, svg2ttf, svgs2ttf, ttf2eot, ttf2svg, ttf2woff, ttf2woff2 } from "./plugins.mjs";
3
3
  import FontminCompat from "./compat.mjs";
4
4
  import { fontminCompatPreset } from "./presets.mjs";
@@ -1139,7 +1139,7 @@ function internalCacheKey(plugin) {
1139
1139
  //#endregion
1140
1140
  //#region src/optimize-storage.ts
1141
1141
  const CACHE_SCHEMA_VERSION = "v1";
1142
- const FONTMIN_VERSION = "0.3.0";
1142
+ const FONTMIN_VERSION = "1.0.0";
1143
1143
  const DEFAULT_CACHE_DIR = "node_modules/.cache/fontmin-rs";
1144
1144
  let temporaryFileCounter = 0;
1145
1145
  function createPluginContext(cwd, emittedAssets) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fontmin-rs",
3
- "version": "0.3.0",
3
+ "version": "1.0.0",
4
4
  "description": "Fast font subsetter and converter written in Rust with Node.js bindings.",
5
5
  "keywords": [
6
6
  "font",
@@ -58,7 +58,7 @@
58
58
  "dependencies": {
59
59
  "jsonc-parser": "^3.3.1",
60
60
  "tinyglobby": "^0.2.17",
61
- "@fontmin-rs/wasm": "0.3.0"
61
+ "@fontmin-rs/wasm": "1.0.0"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@ntnyq/tsconfig": "^3.1.0",
@@ -70,7 +70,7 @@
70
70
  "vitest": "^4.1.10"
71
71
  },
72
72
  "optionalDependencies": {
73
- "@fontmin-rs/binding": "0.3.0"
73
+ "@fontmin-rs/binding": "1.0.0"
74
74
  },
75
75
  "engines": {
76
76
  "node": ">=22.0.0"