Page MenuHomePhabricator

D8276.id27952.diff
No OneTemporary

D8276.id27952.diff

diff --git a/lib/shared/version-utils.js b/lib/shared/version-utils.js
--- a/lib/shared/version-utils.js
+++ b/lib/shared/version-utils.js
@@ -8,6 +8,12 @@
*/
const FUTURE_CODE_VERSION = 1000000;
+/**
+ * A code version used for features that are waiting to be included
+ * in the very next release
+ */
+const NEW_CODE_VERSION = 1000000;
+
function hasMinCodeVersion(
platformDetails: ?PlatformDetails,
minCodeVersion: $Shape<{ +native: number, +web: number }>,
@@ -30,4 +36,4 @@
return true;
}
-export { FUTURE_CODE_VERSION, hasMinCodeVersion };
+export { FUTURE_CODE_VERSION, NEW_CODE_VERSION, hasMinCodeVersion };

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 5:46 AM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2496305
Default Alt Text
D8276.id27952.diff (637 B)

Event Timeline