rsnext/packages/next/types
Sukka 97df2bb095
refactor: rewrite etag (#38568)
x-ref: https://github.com/vercel/next.js/issues/38235#issuecomment-1182283358

Rewrite ETag generate function with `fnv1a` hash.

FNV hashes are designed to be fast while maintaining a low collision rate. The FNV speed allows one to quickly hash lots of data while maintaining a reasonable collision rate (https://softwareengineering.stackexchange.com/questions/49550/which-hashing-algorithm-is-best-for-uniqueness-and-speed/145633).

[fastify-etag](https://github.com/fastify/fastify-etag) also uses `fnv1a` algorithm by default.

cc @shuding: Should `experimental-edge` also switch to `fnv1a` for ETag, for consistency?
2022-07-18 09:20:44 +00:00
..
global.d.ts chore: deprecate process.browser (#32862) 2022-01-27 16:55:26 +00:00
index.d.ts Fix styled-jsx types when package is not hoisted (#37902) 2022-06-22 12:09:22 +00:00
misc.d.ts refactor: rewrite etag (#38568) 2022-07-18 09:20:44 +00:00
webpack.d.ts Update server-only changes HMR handling (#34298) 2022-02-16 16:32:24 -06:00