Re: [Tiki-devel] Proposal to Replace jquery-timeago with timeago.js in Tiki
Merci Jacob <[email protected]> Thu, 26 Sep 2024 19:12:20 +0200
| Newsgroups | gmane.comp.cms.tiki.devel |
|---|---|
| Message-ID | <CAAaqvTCuM3TSAK1zaRM=haevuhLQ4=-JvW+HUcV_5TWaRrYw4Q@mail.gmail.com> |
I don't think it's a great idea to introduce an additional package. All time manipulation packages, including moment.js and the other alternatives you mentioned, offer the functionality you're looking for. The reason for considering that library seems to be that moment.js is not recommended for new projects by its authors. However, this doesn't apply here since we are not introducing it—it's already in use. In the unlikely event we decide to replace moment.js in the future, any replacement will have the features we currently need. In summary, I advise using moment.js features. Thanks, Merci Jacob On Thu, 26 Sept 2024 at 14:50, luci via TikiWiki-devel < [email protected]> wrote: > +1 > luci > > September 26, 2024 at 12:58 PM, "Jonny Bradley via TikiWiki-devel" < > [email protected]> wrote: > > > > > > > +1 from me, thanks! > > > > jonny > > > > > > > > On 26 Sep 2024, at 06:28, Joseph L Kausi <[email protected]> > wrote: > > > > > > Hi Community, > > > > > > I would like to open a discussion regarding the potential replacement > of the jquery-timeago library currently used in Tiki to display relative > timestamps. > > > > > > I propose replacing jquery-timeago with **timeago.js > https://github.com/hustcc/timeago.js **, a lightweight, dependency-free > JavaScript library that offers similar "time ago" functionality. > **timeago.js** is Smaller and faster and does not have jQuery dependency. > > > > > > Although **moment.js https://momentjs.com/ ** could technically > replace jquery-timeago, I recommend against this. While Tiki already uses > moment.js, it is in maintenance mode, and its developers recommend > alternatives for new projects. > > > > > > Furthermore, if Tiki decides to replace **moment.js** with **Day.js > http://github.com/iamkun/dayjs ** or **Luxon > http://github.com/moment/luxon ** in the future, these libraries could > also handle relative timestamp formatting, potentially replacing > **timeago.js**. > > > > > > Looking forward to your feedback! > > > > > > Cheers, > > > > > > Joseph Kausi > > > > > > _______________________________________________ > > > > > > TikiWiki-devel mailing list > > > > > > [email protected] > > > > > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > > > > > > > > _______________________________________________ > TikiWiki-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel > _______________________________________________ TikiWiki-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/tikiwiki-devel