strapi / rfcs

RFCs for Strapi future changes
68 stars 33 forks source link

Add plugin namespaces RFC #21

Closed jorisw closed 2 years ago

jorisw commented 3 years ago

See RFC.

alexandrebodin commented 3 years ago

Hi @jorisw Can you change the link tu the preview of the rfc insteand :)

jorisw commented 3 years ago

Like this?

alexandrebodin commented 3 years ago

Thanks for this RFC.

Two points:

jorisw commented 3 years ago

Your RFC don't take into account name collision in the code if we strip the org name from the plugin (e.g strapi.plugins.xxxx) what xxx will it be ? If we have two plugins with the same name in two different orgs ?

Actually my proposal deals with that in two ways:

In v4 we will certainly move to a config to enable plugin and not use the npm package directly to offer more flexibility. (to be confirmed) In that case this would be solved pretty easily with some like what (eslint, gatsby ...) does with their plugin config

Sounds good. Plug-ins indeed should themselves provide their namespace and name on the long run. I've found reading package.json to be quite a hacky approach.

When is v4 due?

derrickmehaffy commented 3 years ago

When is v4 due?

I don't believe we have a hard date for that yet.

strapi-cla commented 3 years ago

CLA assistant check
All committers have signed the CLA.

alexandrebodin commented 2 years ago

Hi, going to close this RFC as we addressed this in v4