Skip to content

Commit 8911214

Browse files
cortinicocipolleschi
authored andcommitted
Clarify version schema
1 parent 62ef34b commit 8911214

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

proposals/0012-introduce-reactNativeMetadata.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ The React Native direcotry can easily consume the `reactNativeManifest` by:
227227

228228
## Future proof and extensibility
229229

230+
We're versioning the schema using the `schema` key in the `reactNativeManifest` section. This allows us to evolve the schema in the future without breaking changes. We believe that the `schema` key should be a semver version string.
231+
230232
We believe that the `reactNativeManifest` section should be extensible as we believe new capabilities and features can be added there.
231233
Specifically, we envision to evolve `reactNativeManifest` or `reactNativeManifest.capabilites` as follows:
232234

@@ -246,7 +248,7 @@ For an app the section will look as follows:
246248
"name": "my-awesome-app",
247249
"version": "1.2.3",
248250
"reactNativeManifest": {
249-
"version": "1.0",
251+
"schema": "1.0.0",
250252
"type": "app",
251253
"capabilities": {
252254
"hermes": {
@@ -275,7 +277,7 @@ For a library the section will look as follows:
275277
"name": "my-awesome-library",
276278
"version": "1.2.3",
277279
"reactNativeManifest": {
278-
"version": "1.0",
280+
"schema": "1.0.0",
279281
"type": "library",
280282
"capabilities": {
281283
"hermes": {

0 commit comments

Comments
 (0)