fontmin-rs 1.2.0-rc.2 → 1.2.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 { A as reduceVariationSpace, C as extractCollectionFace, D as inspectCollection, G as normalizeDeliverySlices$1, H as woff2ToTtf, I as ttfToEot, J as findConfig, L as ttfToSvg, N as subsetTtfWithReport, O as instantiateFont, R as ttfToWoff, S as eotToTtf, T as inspect, U as woffToTtf, W as missingGlyphWarning, Y as loadConfig, a as cleanOutputDirectory, b as analyzeCoverage, c as resolveSubsetTextFile, i as atomicWriteFile, j as subsetTtf, k as otfToTtf, o as expandInputPath, r as normalizeCacheOptions, t as optimize, z as ttfToWoff2 } from "./optimize-pipeline-
|
|
1
|
+
import { A as reduceVariationSpace, C as extractCollectionFace, D as inspectCollection, G as normalizeDeliverySlices$1, H as woff2ToTtf, I as ttfToEot, J as findConfig, L as ttfToSvg, N as subsetTtfWithReport, O as instantiateFont, R as ttfToWoff, S as eotToTtf, T as inspect, U as woffToTtf, W as missingGlyphWarning, Y as loadConfig, a as cleanOutputDirectory, b as analyzeCoverage, c as resolveSubsetTextFile, i as atomicWriteFile, j as subsetTtf, k as otfToTtf, o as expandInputPath, r as normalizeCacheOptions, t as optimize, z as ttfToWoff2 } from "./optimize-pipeline-XbDo08bZ.mjs";
|
|
2
2
|
import { a as glyph, i as deliverySlices, l as svgs2ttf } from "./plugins-DsijrTfF.mjs";
|
|
3
3
|
import { mkdir, readFile, stat, writeFile } from "node:fs/promises";
|
|
4
4
|
import { basename, dirname, extname, resolve } from "node:path";
|
|
5
5
|
//#region src/cli.mjs
|
|
6
6
|
const INIT_CONFIG_FILE = "fontmin.config.jsonc";
|
|
7
7
|
const CONFIG_SCHEMA_PATH = "./node_modules/fontmin-rs/configuration_schema.json";
|
|
8
|
-
const FONTMIN_VERSION = "1.2.0
|
|
8
|
+
const FONTMIN_VERSION = "1.2.0";
|
|
9
9
|
let emitWarnings = true;
|
|
10
10
|
const DEFAULT_INIT_CONFIG = `{
|
|
11
11
|
// Generated by fontmin-rs init.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { q as defineConfig, t as optimize } from "./optimize-pipeline-
|
|
1
|
+
import { q as defineConfig, t as optimize } from "./optimize-pipeline-XbDo08bZ.mjs";
|
|
2
2
|
import { a as glyph, c as svg2ttf, d as ttf2svg, f as ttf2woff, i as deliverySlices, l as svgs2ttf, p as ttf2woff2, s as otf2ttf, u as ttf2eot, v as createBuiltinPlugin } from "./plugins-DsijrTfF.mjs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { readdirSync } from "node:fs";
|
package/dist/compat.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as util, n as mime, r as plugins, t as FontminCompat } from "./compat-
|
|
1
|
+
import { i as util, n as mime, r as plugins, t as FontminCompat } from "./compat-D8l7c3fw.mjs";
|
|
2
2
|
export { FontminCompat as default, mime, plugins, util };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as reduceVariationSpace, B as ttfToWoff2Async, C as extractCollectionFace, D as inspectCollection, E as inspectCapabilities, F as svgsToTtf, H as woff2ToTtf, I as ttfToEot, K as FontminDiagnosticError, L as ttfToSvg, M as subsetTtfWithPlan, N as subsetTtfWithReport, O as instantiateFont, P as svgFontToTtf, R as ttfToWoff, S as eotToTtf, T as inspect, U as woffToTtf, V as validateWoff2, Y as loadConfig, _ as unicodeRangesFromCodePoints, b as analyzeCoverage, g as detectDeliveryLanguages, j as subsetTtf, k as otfToTtf, l as discoverWebText, q as defineConfig, t as optimize, u as extractWebText, w as generateFontFaceCss, x as createTtfSubsetPlan, z as ttfToWoff2 } from "./optimize-pipeline-
|
|
2
|
-
import { i as util, n as mime, r as plugins, t as FontminCompat } from "./compat-
|
|
1
|
+
import { A as reduceVariationSpace, B as ttfToWoff2Async, C as extractCollectionFace, D as inspectCollection, E as inspectCapabilities, F as svgsToTtf, H as woff2ToTtf, I as ttfToEot, K as FontminDiagnosticError, L as ttfToSvg, M as subsetTtfWithPlan, N as subsetTtfWithReport, O as instantiateFont, P as svgFontToTtf, R as ttfToWoff, S as eotToTtf, T as inspect, U as woffToTtf, V as validateWoff2, Y as loadConfig, _ as unicodeRangesFromCodePoints, b as analyzeCoverage, g as detectDeliveryLanguages, j as subsetTtf, k as otfToTtf, l as discoverWebText, q as defineConfig, t as optimize, u as extractWebText, w as generateFontFaceCss, x as createTtfSubsetPlan, z as ttfToWoff2 } from "./optimize-pipeline-XbDo08bZ.mjs";
|
|
2
|
+
import { i as util, n as mime, r as plugins, t as FontminCompat } from "./compat-D8l7c3fw.mjs";
|
|
3
3
|
import { a as glyph, c as svg2ttf, d as ttf2svg, f as ttf2woff, g as webDelivery, i as deliverySlices, l as svgs2ttf, m as variationSpace, n as css, o as modernWeb, p as ttf2woff2, r as definePlugin, s as otf2ttf, t as autoDeliverySlices, u as ttf2eot } from "./plugins-DsijrTfF.mjs";
|
|
4
4
|
import { fontminCompatPreset } from "./presets.mjs";
|
|
5
5
|
export { FontminDiagnosticError, analyzeCoverage, autoDeliverySlices, createTtfSubsetPlan, css, FontminCompat as default, defineConfig, definePlugin, deliverySlices, detectDeliveryLanguages, discoverWebText, eotToTtf, extractCollectionFace, extractWebText, fontminCompatPreset, generateFontFaceCss, glyph, inspect, inspectCapabilities, inspectCollection, instantiateFont, loadConfig, mime, modernWeb, optimize, otf2ttf, otfToTtf, plugins, reduceVariationSpace, subsetTtf, subsetTtfWithPlan, subsetTtfWithReport, svg2ttf, svgFontToTtf, svgs2ttf, svgsToTtf, ttf2eot, ttf2svg, ttf2woff, ttf2woff2, ttfToEot, ttfToSvg, ttfToWoff, ttfToWoff2, ttfToWoff2Async, unicodeRangesFromCodePoints, util, validateWoff2, variationSpace, webDelivery, woff2ToTtf, woffToTtf };
|
|
@@ -2457,7 +2457,7 @@ function isNodeErrorWithCode(error, code) {
|
|
|
2457
2457
|
//#endregion
|
|
2458
2458
|
//#region src/optimize-storage.ts
|
|
2459
2459
|
const CACHE_SCHEMA_VERSION = "v1";
|
|
2460
|
-
const FONTMIN_VERSION = "1.2.0
|
|
2460
|
+
const FONTMIN_VERSION = "1.2.0";
|
|
2461
2461
|
const DEFAULT_CACHE_DIR = "node_modules/.cache/fontmin-rs";
|
|
2462
2462
|
const DEFAULT_CACHE_MAX_AGE_MS = 2592e6;
|
|
2463
2463
|
const DEFAULT_CACHE_MAX_ENTRIES = 256;
|
package/dist/vinyl.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as detectFormat, f as generateAssets, h as woff2FallbacksFromPlugins, m as transformAssets, n as createPluginContext, p as sortPlugins, s as resolvePluginTextFiles, v as createRuntimeSelector, y as resolvePipelineRuntimeMode } from "./optimize-pipeline-
|
|
2
|
-
import { t as FontminCompat } from "./compat-
|
|
1
|
+
import { d as detectFormat, f as generateAssets, h as woff2FallbacksFromPlugins, m as transformAssets, n as createPluginContext, p as sortPlugins, s as resolvePluginTextFiles, v as createRuntimeSelector, y as resolvePipelineRuntimeMode } from "./optimize-pipeline-XbDo08bZ.mjs";
|
|
2
|
+
import { t as FontminCompat } from "./compat-D8l7c3fw.mjs";
|
|
3
3
|
import { resolve } from "node:path";
|
|
4
4
|
import { PassThrough, Readable, Transform } from "node:stream";
|
|
5
5
|
import Vinyl from "vinyl";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fontmin-rs",
|
|
3
|
-
"version": "1.2.0
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Fast font subsetter and converter written in Rust with Node.js bindings.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"font",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"tinyglobby": "^0.2.17",
|
|
67
67
|
"vinyl": "^3.0.1",
|
|
68
68
|
"vinyl-fs": "^4.0.2",
|
|
69
|
-
"@fontmin-rs/wasm": "1.2.0
|
|
69
|
+
"@fontmin-rs/wasm": "1.2.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@ntnyq/tsconfig": "^3.1.0",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"vitest": "^4.1.11"
|
|
82
82
|
},
|
|
83
83
|
"optionalDependencies": {
|
|
84
|
-
"@fontmin-rs/binding": "1.2.0
|
|
84
|
+
"@fontmin-rs/binding": "1.2.0"
|
|
85
85
|
},
|
|
86
86
|
"engines": {
|
|
87
87
|
"node": ">=22.18.0"
|