rsnext/packages/next/lib
tolfino bbde18f120
Fix false positive in isSerializable with shared references in arrays (#18232)
This replaces the seen set with a newly instantiated map of refs per
value in the array. This corrects the behavior that the refs map passed
into isSerializable contains only values along the path to the current
value: previously, because the refs map was shared among all values in
the array, this would trigger on instances such as:

```js
    const x = [];
    isSerializableProps('/', 'test', { arr: [x, [x]] });
```

... where the reference is shared but there is no cycle formed, as the
presence of elements is disjoint.

Fixes #18228.
2020-11-09 14:25:41 +00:00
..
typescript ncc 0.25.0 upgrade and fixes (#18873) 2020-11-06 02:33:14 +00:00
coalesced-function.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
constants.ts Add support for fallback: 'blocking' (#15672) 2020-08-04 15:10:31 +00:00
file-exists.ts Eliminate public folder enumeration (#14042) 2020-06-10 20:35:34 +00:00
find-config.ts find-up 2020-03-30 16:26:25 -04:00
find-pages-dir.ts Add initial support for new env handling (#10525) 2020-03-26 13:32:41 +01:00
get-package-version.ts Reduce filesystem lookups during bootup (#16354) 2020-08-19 16:15:16 +00:00
is-serializable-props.ts Fix false positive in isSerializable with shared references in arrays (#18232) 2020-11-09 14:25:41 +00:00
load-custom-routes.ts Ensure redirects are handled properly from cache (#18806) 2020-11-04 22:18:44 +00:00
oxford-comma-list.ts refactor(typescript): extract preflight functions (#13510) 2020-05-28 23:39:46 +00:00
pretty-bytes.ts Move syntax formatting to prettier (#7454) 2019-05-29 13:57:26 +02:00
recursive-copy.ts chore(next): export/lib/next-server missing types (#13320) 2020-05-24 22:44:05 +00:00
recursive-delete.ts Upgrade to Prettier 2 (#13061) 2020-05-18 15:24:37 -04:00
recursive-readdir.ts Use fs.promises instead of promisify (#12026) 2020-05-02 00:10:19 -04:00
resolve-request.ts Warn when Fast Refresh is disabled (React <16.10) (#15931) 2020-08-06 10:41:11 -04:00
verifyTypeScriptSetup.ts ncc 0.25.0 upgrade and fixes (#18873) 2020-11-06 02:33:14 +00:00