Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3247530
D8276.id27952.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
637 B
Referenced Files
None
Subscribers
None
D8276.id27952.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D8276: Introduce NEW_CODE_VERSION constant
Attached
Detach File
Event Timeline
Log In to Comment