jzabala / gatsby-plugin-fontawesome-css

Gatsby plugin that disables Font Awesome auto CSS insertion and instead inserts it at compile time.
14 stars 7 forks source link

Update package.json #26

Open ed-wright opened 2 years ago

ed-wright commented 2 years ago

Update peer dependencies to solve issue #22 and allow integration with FontAwesome 6

jimappleg8 commented 2 years ago

The change that was made to the package.json file did not seem to resolve the issue. The later part of the range was removed (i.e. "^1.2.0 || ^6.1.0" changed to "^1.2.0") which I think still excludes anything past version 1.2.x of the fontawesome-svg-core file.

I'm not an expert, but I think what needs to change is either to allow higher versions of 6 (i.e. 6.2.0 is the latest)

"@fortawesome/fontawesome-svg-core": "^1.2.0 || ^6.0.0"

or just allow anything greater than 1.2.0:

"@fortawesome/fontawesome-svg-core": ">1.2.0"

I'm getting this info from here: https://github.com/npm/node-semver#versions

ed-wright commented 2 years ago

@jimappleg8 not an expert either :) im checking this now as I believe that you are mostly correct but the "@fortawesome/fontawesome-svg-core": ">1.2.0" part I am unsure about but this may be my misunderstanding.

ed-wright commented 2 years ago

@jimappleg8 i just re-checked out the code and installed via Yarn. I have also updated the package.json and lockfile using npm.

I also used https://semver.npmjs.com/ to check and the string i have seems okay although i have updated it to be more permissive. (^6.0.0 instead of ^6.1.0)

image

If you install via yarn you will currently get...

image

if you install via NPM you get.,..

image

This is not good, looking into the fix...

ed-wright commented 1 year ago

@jimappleg8 @lapc002 I have had a PR open for a long time now attempting to fix this. I have now published a fork of this repo on NPM

https://github.com/ed-wright/gatsby-plugin-fontawesome-css https://www.npmjs.com/package/gatsby-plugin-fontawesome-css-2

jzabala commented 1 year ago

Hey @ed-wright I am very sorry. I don't have time anymore to keep maintaining this project. Let me know if you would like me to transfer it to you.

Thanks :)

ed-wright commented 1 year ago

Yes please, could you also transfer the npm package ownership too

jzabala commented 1 year ago

Hi @ed-wright thank you very much for offering to take control of the project 🙏🏼. I see this error when I try to transfer the github project to you:

Screen Shot 2022-10-14 at 8 44 59 PM

I already sent to you the invitation to be a maintainer in npm:

Screen Shot 2022-10-14 at 8 49 40 PM
ed-wright commented 1 year ago

@jzabala sorted sorry about that :)

jzabala commented 1 year ago

hey @ed-wright no idea what is going on hahah. Do you understand this error?

Screenshot 2022-11-08 at 2 23 28 PM

In the meantime I added you as a collaborator of the repo.