Releases: facebookarchive/prepack
0.2.32
Works on windows now
There was nothing that verified that our yarn.lock was up-to-date in our CI. Added the --frozen-lockfile
option to CircleCI and package.json
to make sure that we update the yarn.lock
when we put up a commit.
Improved code generation in the presence of branching
CI uses Node 8.9.4 for better performance and prepublishOnly for NPM publishing
Execute Do/While loop condition in the proper place
Introducting new option --invariantLevel NUMBER and dropping --omitInvariants
AddscreateRef
and forwardRef
to the React compiler
Diagnostic PP1001 for variable write conflict among optimized functions
0.2.31
Fix problem where the results of To.ToObject were lost during serialization
__optimize
calls now search for newly registered functions.
Statistics about abstract interpretation
Better support for o[p] where p is unknown and the runtime value denotes a property on the prototype.
Do not inline functions accessing mutable free variables #1058
Emitting informational diagnostics when Math.random() uses fixed random seed
Using custom JSONTokenizer and streaming instead of JSON.stringify for cpuprofiles
Option whether to throw or call console function on invariant violation.
Dropped entries in WeakSet and WeakMap that are not referenced elsewhere from serialized output. #680.
Aggregate common captured scope cases #995, #1707
adds React 16.3 getDerivedStateFromProps
support to the React compiler
v0.2.30
Weekly release 0.2.30:
- Several improvements to simplifier, including more aggressive simplification of !e expressions, and better simplification in the presence of == and !=
- For npm/yarn,
prepack
command renamed toprepack-cli
- Many refactorings and bug fixes, including #1645, #1675, #1558, #1665 (crash in REPL on http://prepack.io), #1627 (Stop generator entries from being serialized twice), #1598
v0.2.29
0.2.27
Adds React verbose mode
Simplify conditions like c ? {} : null to just c if used in a condition context
Fix delayed conversions of abstract values to objects in pure mode
Allow additional functions to return PossiblyNormalCompletions.
Make short-circuit logic similar to React Hoisting
__registerAdditionalFunction
is now __optimize
Handles more implicit abstract conversions during binary ops
v0.2.25
Make terminology more standard (Leak -> Havoc).
Ensure React component tree roots are only evaluated once.
New --repro command line option for easier bug reporting.
Allow complex React class components to fold into simple class components.
Fixing an ordering issue with generators + additional functions.
Change how to signal React components for optimization.
Added "node-react" compatibility mode.
Enable hasOwnProperty for abstract objects in pure mode.
Do not havoc leaked objects if they are frozen.
Allow switch statements to have abstract switch expressions.
Adds a new React reconciler rendering mode called firstRenderOnly
.
Allow simple object computed property access with abstract property keys.
Prepack now ships Node 6.1+ compatible source.
Better error message when base of a member expression is abstract and of unknown type.
Adapted Prepack source code to latest Flow
v0.2.24
Summary of changes:
- Removing dependency on Base62 npm package which collects Google Analytics information at installation time
- New option --stripFlow to parse and strip Flow annotations
- Support for Object.freeze, Object.seal, and Object.preventExtensions
- Better support for abstract values in Object.assign calls
- Support for transitive simple objects
- Basic support for arguments for additional functions
- Improvements to partial evaluator
- Lots of work on the React Compiler
- Lots of bug fixes and little improvements