HackerTrans
TopNewTrendsCommentsPastAskShowJobs

aubergene

no profile record

comments

aubergene
·há 4 meses·discuss
This seems more to do with how JSON works than Temporal. There are libraries such as Devalue which will handle this for you

`devalue.parse(devalue.stringify(Temporal.PlainYearMonth.from({year:2026,month:1}))).subtract({ years: 1})`

https://www.npmjs.com/package/devalue
aubergene
·ano passado·discuss
Just to add Svelte (`pnpm create vite -t svelte-ts`) ~8KB

  dist/index.html                  0.46 kB │ gzip: 0.30 kB
  dist/assets/index-yJpzg09Q.css   1.26 kB │ gzip: 0.63 kB
  dist/assets/index-CxtJFQC8.js   17.91 kB │ gzip: 7.72 kB