cson icon indicating copy to clipboard operation
cson copied to clipboard

Rewrite in TypeScript with Promises

Open balupton opened this issue 5 years ago • 9 comments

Definitions already provided by @stpettersens at: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/5344bfc80508c53a23dae37b860fb0c905ff7b24/types/cson/index.d.ts

balupton avatar Dec 18 '18 22:12 balupton

@stpettersens would you be interested in undertaking this task?

balupton avatar Dec 20 '18 04:12 balupton

Rewrite the library in TypeScript?

stpettersens avatar Dec 20 '18 21:12 stpettersens

Rewrite the library in TypeScript?

Correct.

balupton avatar Oct 28 '20 22:10 balupton

For anyone who wants to rewrite the CSON library in TypeScript, I can kick off the scaffolding required, but just need someone to do the actual line by line conversions.

Once the initial typescript release is done, I'm also happy for the API to change and move into a Promise API as well, or to just be overall simplified.

I'm able to put a $10USD bounty on this, but that is all I can afford.

balupton avatar Oct 28 '20 23:10 balupton

actually, going to do it myself now

balupton avatar Oct 28 '20 23:10 balupton

actually, will need to wait until these deps are converted to typescript first:

  • [x] https://github.com/bevry/requirefresh
  • [ ] https://github.com/bevry/safeps

extract-opts is not needed, as typescript conversion would deprecate the need for this via bc breaks

so postponing until later

balupton avatar Oct 28 '20 23:10 balupton

these are the remaining usages of cson within the bevry ecosystem:

https://github.com/docpad/docpad-plugin-cson/blob/875c7fa912e382f2e63f91dd01dfd78165c5d5d5/source/index.coffee#L23-L29

https://github.com/docpad/docpad/blob/7ed5087dab6b88df634952dc7a850d6622b88efb/source/lib/models/document.coffee#L793

https://github.com/docpad/docpad/blob/7ed5087dab6b88df634952dc7a850d6622b88efb/source/lib/models/document.coffee#L227

https://github.com/docpad/docpad/blob/85b3297ea8a50c477d8de890388905469a1ac5e8/source/lib/docpad.coffee#L2298-L2299

https://github.com/docpad/docpad/blob/85b3297ea8a50c477d8de890388905469a1ac5e8/source/lib/docpad.coffee#L2217-L2218

https://github.com/docpad/docpad/blob/85b3297ea8a50c477d8de890388905469a1ac5e8/source/lib/docpad.coffee#L2261

They are all DocPad stuff, it isn't used outside DocPad, which is an archived project. So Bevry priority here is very low.

balupton avatar Oct 28 '20 23:10 balupton

for swapping out safefs https://github.com/bevry/fs-read https://github.com/bevry/fs-write

Not sure for requirefresh.

balupton avatar Nov 18 '23 01:11 balupton

They are all DocPad stuff, it isn't used outside DocPad, which is an archived project. So Bevry priority here is very low.

This is no longer the case, there are hundreds of dependents: https://www.npmjs.com/package/cson?activeTab=dependents

still nothing bevry owned uses cson anymore besides docpad which is an archived project

best way to make this happen is via https://bevry.me/fund

balupton avatar Nov 18 '23 01:11 balupton