3 ms·
> they started to rewrite the core of Next.js This is such an important piece of information. Imagine you opt for Next and have to rewrite your app soon. I kn
by midway 8y ago
> they started to rewrite the core of Next.js
This is such an important piece of information. Imagine you opt for Next and have to rewrite your app soon. I know, APIs can be backwards compatible and Next's next version will be backwards compatible but there is always something which doesn't work, sending you down the rabbit hole...
- mxstbr 8y agoThe core stays the same, they are only adding static types. I am certain they will make sure nothing meaningful will change in the outputted JavaScript, except for potential bug fixes uncovered by the types! Your apps should not be affected at all.
- midway 8y ago> they are only adding static types. The parent says something different and if it were just about adding types then you need just to add a file to DefinitelyTyped which I guess happened already.
- mxstbr 8y agoYes it says they are "rewriting the core in TypeScript", but that does not necessarily mean changing the code in any meaningful way. It means adding static types to the core itself, not only the interface (which DefinitivelyTyped is for).
- timneutkens 8y agoMax is definitely right here. We're not planning to deprecate or "completely rewrite" anything. We're not even "rewriting everything in Typescript at once". We're slowly converting files over one by one. No public APIs are changed. Furthermore, we have an extensive test suite of end-to-end tests for both development and production behavior.