firestore-proto-codec 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -100,6 +100,6 @@ export declare enum EnumEncoding {
100
100
  */
101
101
  export declare const EnumEncodingSchema: GenEnum<EnumEncoding>;
102
102
  /**
103
- * @generated from extension: codebinge.firestore.codec.v1.Field field = 50000;
103
+ * @generated from extension: codebinge.firestore.codec.v1.Field field = 1376;
104
104
  */
105
105
  export declare const field: GenExtension<FieldOptions, Field>;
@@ -4,7 +4,7 @@ import { file_google_protobuf_descriptor } from "@bufbuild/protobuf/wkt";
4
4
  /**
5
5
  * Describes the file codebinge/firestore/codec/v1/options.proto.
6
6
  */
7
- export const file_codebinge_firestore_codec_v1_options = /*@__PURE__*/ fileDesc("Cipjb2RlYmluZ2UvZmlyZXN0b3JlL2NvZGVjL3YxL29wdGlvbnMucHJvdG8SHGNvZGViaW5nZS5maXJlc3RvcmUuY29kZWMudjEiyAEKBUZpZWxkEgwKBHNraXAYASABKAgSDAoEbmFtZRgCIAEoCRI7CgdlbnVtX2FzGAMgASgOMiouY29kZWJpbmdlLmZpcmVzdG9yZS5jb2RlYy52MS5FbnVtRW5jb2RpbmcSHgoRb21pdF93aGVuX2RlZmF1bHQYBCABKAhIAIgBARIwCgRraW5kGAUgASgOMiIuY29kZWJpbmdlLmZpcmVzdG9yZS5jb2RlYy52MS5LaW5kQhQKEl9vbWl0X3doZW5fZGVmYXVsdCpOCgRLaW5kEhQKEEtJTkRfVU5TUEVDSUZJRUQQABISCg5LSU5EX0dFT19QT0lOVBABEhwKGEtJTkRfVU5TSUdORURfQVNfSU5URUdFUhACKkAKDEVudW1FbmNvZGluZxIWChJFTlVNX0VOQ09ESU5HX05BTUUQABIYChRFTlVNX0VOQ09ESU5HX05VTUJFUhABOloKBWZpZWxkEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxjQhgMgASgLMiMuY29kZWJpbmdlLmZpcmVzdG9yZS5jb2RlYy52MS5GaWVsZFIFZmllbGRCJAogY29tLmNvZGViaW5nZS5maXJlc3RvcmUuY29kZWMudjFQAWIGcHJvdG8z", [file_google_protobuf_descriptor]);
7
+ export const file_codebinge_firestore_codec_v1_options = /*@__PURE__*/ fileDesc("Cipjb2RlYmluZ2UvZmlyZXN0b3JlL2NvZGVjL3YxL29wdGlvbnMucHJvdG8SHGNvZGViaW5nZS5maXJlc3RvcmUuY29kZWMudjEiyAEKBUZpZWxkEgwKBHNraXAYASABKAgSDAoEbmFtZRgCIAEoCRI7CgdlbnVtX2FzGAMgASgOMiouY29kZWJpbmdlLmZpcmVzdG9yZS5jb2RlYy52MS5FbnVtRW5jb2RpbmcSHgoRb21pdF93aGVuX2RlZmF1bHQYBCABKAhIAIgBARIwCgRraW5kGAUgASgOMiIuY29kZWJpbmdlLmZpcmVzdG9yZS5jb2RlYy52MS5LaW5kQhQKEl9vbWl0X3doZW5fZGVmYXVsdCpOCgRLaW5kEhQKEEtJTkRfVU5TUEVDSUZJRUQQABISCg5LSU5EX0dFT19QT0lOVBABEhwKGEtJTkRfVU5TSUdORURfQVNfSU5URUdFUhACKkAKDEVudW1FbmNvZGluZxIWChJFTlVNX0VOQ09ESU5HX05BTUUQABIYChRFTlVNX0VOQ09ESU5HX05VTUJFUhABOlkKBWZpZWxkEh0uZ29vZ2xlLnByb3RvYnVmLkZpZWxkT3B0aW9ucxjgCiABKAsyIy5jb2RlYmluZ2UuZmlyZXN0b3JlLmNvZGVjLnYxLkZpZWxkUgVmaWVsZEIkCiBjb20uY29kZWJpbmdlLmZpcmVzdG9yZS5jb2RlYy52MVABYgZwcm90bzM", [file_google_protobuf_descriptor]);
8
8
  /**
9
9
  * Describes the message codebinge.firestore.codec.v1.Field.
10
10
  * Use `create(FieldSchema)` to create a new message.
@@ -61,6 +61,6 @@ export var EnumEncoding;
61
61
  */
62
62
  export const EnumEncodingSchema = /*@__PURE__*/ enumDesc(file_codebinge_firestore_codec_v1_options, 1);
63
63
  /**
64
- * @generated from extension: codebinge.firestore.codec.v1.Field field = 50000;
64
+ * @generated from extension: codebinge.firestore.codec.v1.Field field = 1376;
65
65
  */
66
66
  export const field = /*@__PURE__*/ extDesc(file_codebinge_firestore_codec_v1_options, 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "firestore-proto-codec",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Encode a protobuf message as a Firestore value, and decode it back.",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -11,15 +11,17 @@ option java_multiple_files = true;
11
11
 
12
12
  // Per-field encoding options. See docs/encoding.md §7.
13
13
  //
14
- // NOTE: extension number 50000 is provisional. 50000-99999 is protobuf's
15
- // organization-internal range -- shared scratch space every organization is told
16
- // to use freely -- so a collision there is documented behavior, not bad luck,
17
- // and it surfaces as soon as two published schemas meet in one descriptor pool.
18
- // protocolbuffers/protobuf#29013 reports exactly that failure. Replace this with
19
- // a Global Extension Registry number before any public release: changing it
20
- // afterwards is breaking, and it is baked into generated identifiers too.
14
+ // Extension number 1376 is registered to this project in protobuf's Global
15
+ // Extension Registry, which reserves 1376-1380 for it. Do not change it: the
16
+ // number is baked into every generated artifact and into every consumer .proto,
17
+ // and a consumer still on an old number stops seeing the annotation silently
18
+ // rather than failing.
19
+ //
20
+ // The remaining four are held for future extend sites. Each extend site
21
+ // consumes one number, so extending MessageOptions (or any other descriptor
22
+ // options message) takes the next one, 1377 -- not a reuse of this one.
21
23
  extend google.protobuf.FieldOptions {
22
- Field field = 50000;
24
+ Field field = 1376;
23
25
  }
24
26
 
25
27
  message Field {