Skip to content

Latest commit

 

History

History
33 lines (25 loc) · 1004 Bytes

UPGRADING.md

File metadata and controls

33 lines (25 loc) · 1004 Bytes

Upgrading Versions

2.0 to 3.0

3.0 has updated the default export to be an object for future upgrades / maintainability. Anywhere you were previously using a singular import you'll need to update to destructure or pull from the object instead. Example below:

Old:

const fontawesomeSubset = require('fontawesome-subset');

New:

const { fontawesomeSubset } = require("fontawesome-subset");

New (TypeScript / Module Syntax):

import { fontawesomeSubset } from "fontawesome-subset";

1.x to 2.0

Version 2.0 of fontawesome-subset removes the required dependency for @fortawesome/fontawesome-free.

Pro Users

For Pro users, this release should be backwards compatible since we're only removing the required dependency for the free version.

Free Users

For Free users, this means you'll have to manually specify / save the dependency, as noted in the updated readme.

npm install --save-dev @fortawesome/fontawesome-free