You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The new version replaces the safeLoad and safeDump functions with the load and dump functions (both are safe by default now). Since gray-matter never used the old unsafe load function, we only have to replace the safeLoad function call with load.
See https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md for more information
I will make a PR with the changes.
The text was updated successfully, but these errors were encountered:
Updating to js-yaml 4.1.0 will decrease bundle size.
According to Bundlephobia, the v4 release of js-yaml excludes the esprisma dependency. The exclusion dramatically reduces the bundle size of js-yaml and therefore gray-matter. See https://bundlephobia.com/package/[email protected] and https://bundlephobia.com/package/[email protected] .
The new version replaces the safeLoad and safeDump functions with the load and dump functions (both are safe by default now). Since gray-matter never used the old unsafe load function, we only have to replace the safeLoad function call with load.
See https://github.com/nodeca/js-yaml/blob/master/migrate_v3_to_v4.md for more information
I will make a PR with the changes.
The text was updated successfully, but these errors were encountered: