Update to js-yaml 4.1.0 (was 3.13.0) #136

Open
opened 2022-02-06 20:57:30 +00:00 by pelleknaap · 1 comment
pelleknaap commented 2022-02-06 20:57:30 +00:00 (Migrated from github.com)

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.

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.
pelleknaap commented 2022-02-06 20:58:08 +00:00 (Migrated from github.com)

See #137

See #137
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
rtlabs-llm-agents/gms-gray-matter#136
No description provided.