@googlemaps/places 2.5.0 → 3.0.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.
@@ -31,7 +31,6 @@
31
31
  },
32
32
  "type": {
33
33
  "options": {
34
- "cc_enable_arenas": true,
35
34
  "go_package": "google.golang.org/genproto/googleapis/type/postaladdress;postaladdress",
36
35
  "java_multiple_files": true,
37
36
  "java_outer_classname": "PostalAddressProto",
@@ -3237,6 +3236,10 @@
3237
3236
  "common": {
3238
3237
  "type": "CommonLanguageSettings",
3239
3238
  "id": 1
3239
+ },
3240
+ "libraryPackage": {
3241
+ "type": "string",
3242
+ "id": 2
3240
3243
  }
3241
3244
  }
3242
3245
  },
@@ -3346,6 +3349,10 @@
3346
3349
  "rule": "repeated",
3347
3350
  "type": "string",
3348
3351
  "id": 3
3352
+ },
3353
+ "batching": {
3354
+ "type": "BatchingConfigProto",
3355
+ "id": 4
3349
3356
  }
3350
3357
  },
3351
3358
  "nested": {
@@ -3403,6 +3410,79 @@
3403
3410
  }
3404
3411
  }
3405
3412
  },
3413
+ "BatchingConfigProto": {
3414
+ "fields": {
3415
+ "thresholds": {
3416
+ "type": "BatchingSettingsProto",
3417
+ "id": 1
3418
+ },
3419
+ "batchDescriptor": {
3420
+ "type": "BatchingDescriptorProto",
3421
+ "id": 2
3422
+ }
3423
+ }
3424
+ },
3425
+ "BatchingSettingsProto": {
3426
+ "fields": {
3427
+ "elementCountThreshold": {
3428
+ "type": "int32",
3429
+ "id": 1
3430
+ },
3431
+ "requestByteThreshold": {
3432
+ "type": "int64",
3433
+ "id": 2
3434
+ },
3435
+ "delayThreshold": {
3436
+ "type": "google.protobuf.Duration",
3437
+ "id": 3
3438
+ },
3439
+ "elementCountLimit": {
3440
+ "type": "int32",
3441
+ "id": 4
3442
+ },
3443
+ "requestByteLimit": {
3444
+ "type": "int32",
3445
+ "id": 5
3446
+ },
3447
+ "flowControlElementLimit": {
3448
+ "type": "int32",
3449
+ "id": 6
3450
+ },
3451
+ "flowControlByteLimit": {
3452
+ "type": "int32",
3453
+ "id": 7
3454
+ },
3455
+ "flowControlLimitExceededBehavior": {
3456
+ "type": "FlowControlLimitExceededBehaviorProto",
3457
+ "id": 8
3458
+ }
3459
+ }
3460
+ },
3461
+ "FlowControlLimitExceededBehaviorProto": {
3462
+ "values": {
3463
+ "UNSET_BEHAVIOR": 0,
3464
+ "THROW_EXCEPTION": 1,
3465
+ "BLOCK": 2,
3466
+ "IGNORE": 3
3467
+ }
3468
+ },
3469
+ "BatchingDescriptorProto": {
3470
+ "fields": {
3471
+ "batchedField": {
3472
+ "type": "string",
3473
+ "id": 1
3474
+ },
3475
+ "discriminatorFields": {
3476
+ "rule": "repeated",
3477
+ "type": "string",
3478
+ "id": 2
3479
+ },
3480
+ "subresponseField": {
3481
+ "type": "string",
3482
+ "id": 3
3483
+ }
3484
+ }
3485
+ },
3406
3486
  "LaunchStage": {
3407
3487
  "values": {
3408
3488
  "LAUNCH_STAGE_UNSPECIFIED": 0,
@@ -3453,6 +3533,8 @@
3453
3533
  "EDITION_PROTO3": 999,
3454
3534
  "EDITION_2023": 1000,
3455
3535
  "EDITION_2024": 1001,
3536
+ "EDITION_2026": 1002,
3537
+ "EDITION_UNSTABLE": 9999,
3456
3538
  "EDITION_1_TEST_ONLY": 1,
3457
3539
  "EDITION_2_TEST_ONLY": 2,
3458
3540
  "EDITION_99997_TEST_ONLY": 99997,
@@ -3647,6 +3729,10 @@
3647
3729
  }
3648
3730
  },
3649
3731
  "extensions": [
3732
+ [
3733
+ 990,
3734
+ 998
3735
+ ],
3650
3736
  [
3651
3737
  1000,
3652
3738
  536870911
@@ -3922,7 +4008,10 @@
3922
4008
  "type": "bool",
3923
4009
  "id": 10,
3924
4010
  "options": {
3925
- "default": false
4011
+ "default": false,
4012
+ "feature_support.edition_introduced": "EDITION_PROTO2",
4013
+ "feature_support.edition_removed": "EDITION_2024",
4014
+ "feature_support.removal_error": "This behavior is enabled by default in editions 2024 and above. To disable it, you can set `features.(pb.java).nest_in_file_class = YES` on individual messages, enums, or services."
3926
4015
  }
3927
4016
  },
3928
4017
  "javaGenerateEqualsAndHash": {
@@ -3982,7 +4071,9 @@
3982
4071
  "type": "bool",
3983
4072
  "id": 31,
3984
4073
  "options": {
3985
- "default": true
4074
+ "default": true,
4075
+ "feature_support.edition_removed": "EDITION_2026",
4076
+ "feature_support.removal_error": "cc_enable_arenas is enabled by default in every edition and overrides are ignored.This option is removed in editions 2026 and above."
3986
4077
  }
3987
4078
  },
3988
4079
  "objcClassPrefix": {
@@ -4024,6 +4115,10 @@
4024
4115
  }
4025
4116
  },
4026
4117
  "extensions": [
4118
+ [
4119
+ 990,
4120
+ 998
4121
+ ],
4027
4122
  [
4028
4123
  1000,
4029
4124
  536870911
@@ -4096,6 +4191,10 @@
4096
4191
  }
4097
4192
  },
4098
4193
  "extensions": [
4194
+ [
4195
+ 990,
4196
+ 998
4197
+ ],
4099
4198
  [
4100
4199
  1000,
4101
4200
  536870911
@@ -4210,6 +4309,10 @@
4210
4309
  }
4211
4310
  },
4212
4311
  "extensions": [
4312
+ [
4313
+ 990,
4314
+ 998
4315
+ ],
4213
4316
  [
4214
4317
  1000,
4215
4318
  536870911
@@ -4290,6 +4393,10 @@
4290
4393
  "editionRemoved": {
4291
4394
  "type": "Edition",
4292
4395
  "id": 4
4396
+ },
4397
+ "removalError": {
4398
+ "type": "string",
4399
+ "id": 5
4293
4400
  }
4294
4401
  }
4295
4402
  }
@@ -4309,6 +4416,10 @@
4309
4416
  }
4310
4417
  },
4311
4418
  "extensions": [
4419
+ [
4420
+ 990,
4421
+ 998
4422
+ ],
4312
4423
  [
4313
4424
  1000,
4314
4425
  536870911
@@ -4347,6 +4458,10 @@
4347
4458
  }
4348
4459
  },
4349
4460
  "extensions": [
4461
+ [
4462
+ 990,
4463
+ 998
4464
+ ],
4350
4465
  [
4351
4466
  1000,
4352
4467
  536870911
@@ -4391,6 +4506,10 @@
4391
4506
  }
4392
4507
  },
4393
4508
  "extensions": [
4509
+ [
4510
+ 990,
4511
+ 998
4512
+ ],
4394
4513
  [
4395
4514
  1000,
4396
4515
  536870911
@@ -4418,6 +4537,10 @@
4418
4537
  }
4419
4538
  },
4420
4539
  "extensions": [
4540
+ [
4541
+ 990,
4542
+ 998
4543
+ ],
4421
4544
  [
4422
4545
  1000,
4423
4546
  536870911
@@ -4452,6 +4575,10 @@
4452
4575
  }
4453
4576
  },
4454
4577
  "extensions": [
4578
+ [
4579
+ 990,
4580
+ 998
4581
+ ],
4455
4582
  [
4456
4583
  1000,
4457
4584
  536870911
@@ -4593,8 +4720,8 @@
4593
4720
  "retention": "RETENTION_SOURCE",
4594
4721
  "targets": "TARGET_TYPE_METHOD",
4595
4722
  "feature_support.edition_introduced": "EDITION_2024",
4596
- "edition_defaults.edition": "EDITION_2024",
4597
- "edition_defaults.value": "STYLE2024"
4723
+ "edition_defaults.edition": "EDITION_2026",
4724
+ "edition_defaults.value": "STYLE2026"
4598
4725
  }
4599
4726
  },
4600
4727
  "defaultSymbolVisibility": {
@@ -4607,6 +4734,17 @@
4607
4734
  "edition_defaults.edition": "EDITION_2024",
4608
4735
  "edition_defaults.value": "EXPORT_TOP_LEVEL"
4609
4736
  }
4737
+ },
4738
+ "enforceProtoLimits": {
4739
+ "type": "ProtoLimitsFeature.EnforceProtoLimits",
4740
+ "id": 9,
4741
+ "options": {
4742
+ "retention": "RETENTION_SOURCE",
4743
+ "targets": "TARGET_TYPE_ONEOF",
4744
+ "feature_support.edition_introduced": "EDITION_2026",
4745
+ "edition_defaults.edition": "EDITION_2026",
4746
+ "edition_defaults.value": "PROTO_LIMITS2026"
4747
+ }
4610
4748
  }
4611
4749
  },
4612
4750
  "extensions": [
@@ -4683,7 +4821,8 @@
4683
4821
  "values": {
4684
4822
  "ENFORCE_NAMING_STYLE_UNKNOWN": 0,
4685
4823
  "STYLE2024": 1,
4686
- "STYLE_LEGACY": 2
4824
+ "STYLE_LEGACY": 2,
4825
+ "STYLE2026": 3
4687
4826
  }
4688
4827
  },
4689
4828
  "VisibilityFeature": {
@@ -4705,6 +4844,18 @@
4705
4844
  }
4706
4845
  }
4707
4846
  }
4847
+ },
4848
+ "ProtoLimitsFeature": {
4849
+ "fields": {},
4850
+ "nested": {
4851
+ "EnforceProtoLimits": {
4852
+ "values": {
4853
+ "PROTO_LIMITS_UNKNOWN": 0,
4854
+ "LEGACY_NO_EXPLICIT_LIMITS": 1,
4855
+ "PROTO_LIMITS2026": 2
4856
+ }
4857
+ }
4858
+ }
4708
4859
  }
4709
4860
  }
4710
4861
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googlemaps/places",
3
- "version": "2.5.0",
3
+ "version": "3.0.0",
4
4
  "description": "Places API (New) client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,32 +37,32 @@
37
37
  "lint": "gts check",
38
38
  "postpack": "minifyProtoJson",
39
39
  "prepare": "npm run compile",
40
- "system-test": "c8 mocha build/system-test",
41
- "test": "c8 mocha build/test",
40
+ "system-test": "c8 mocha --config ../../.mocharc.cjs --no-parallel build/system-test",
41
+ "test": "c8 mocha --config ../../.mocharc.cjs build/test",
42
42
  "samples-test": "cd samples/ && npm link ../ && npm i && npm test",
43
43
  "prelint": "cd samples; npm link ../; npm i"
44
44
  },
45
45
  "dependencies": {
46
- "google-gax": "^5.0.0"
46
+ "google-gax": "^6.0.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/mocha": "^10.0.10",
50
50
  "@types/node": "^22.13.9",
51
51
  "@types/sinon": "^17.0.4",
52
52
  "c8": "^10.1.3",
53
- "gapic-tools": "^1.0.0",
53
+ "gapic-tools": "^2.0.0",
54
54
  "gts": "^6.0.2",
55
55
  "jsdoc": "^4.0.4",
56
- "jsdoc-fresh": "^4.0.0",
57
- "jsdoc-region-tag": "^3.0.0",
56
+ "jsdoc-fresh": "^6.0.0",
57
+ "jsdoc-region-tag": "^5.0.0",
58
58
  "long": "^5.3.1",
59
59
  "mocha": "^11.1.0",
60
- "pack-n-play": "^3.0.0",
60
+ "pack-n-play": "^5.0.0",
61
61
  "sinon": "21.0.3",
62
62
  "typescript": "^5.8.2"
63
63
  },
64
64
  "engines": {
65
- "node": ">=18"
65
+ "node": ">=22"
66
66
  },
67
67
  "overrides": {
68
68
  "@sinonjs/fake-timers": "15.2.1"