lighter icon indicating copy to clipboard operation
lighter copied to clipboard

Use performance now in tokenizeString instead of the raw Date.now()

Open Jacob-Roberts opened this issue 1 month ago • 1 comments

This function is being exported and used downstream in some projects that rely on next.js 16's cache components.

This doesn't allow using Date.now() and requires the use of performance.now() instead.

Since this file already imports the helper for using performanceNow() let's move over to use that.

This closes https://github.com/code-hike/lighter/issues/51.

Also, I've upstreamed this request: https://github.com/microsoft/vscode-textmate/pull/258

Jacob-Roberts avatar Nov 15 '25 08:11 Jacob-Roberts

@Jacob-Roberts is attempting to deploy a commit to the codehike Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar Nov 15 '25 08:11 vercel[bot]

As a temporary workaround, I've published @autovation/bright which has this change

Jacob-Roberts avatar Nov 26 '25 23:11 Jacob-Roberts