Skip to content

Releases: apple/swift-protobuf

1.13.0 Release

23 Oct 18:02
Compare
Choose a tag to compare

Notable Changes:

  • Sort map fields for TextFormat (to match spec) #1076
    Minor Changes:
  • Reduce foundation usage #1064
  • The CocoaPod spec and checked in Xcode project were updated to move the minimum iOS version to 9.0 to avoid warnings in Xcode 12 #1082

1.12.0 Release

28 Aug 13:46
Compare
Choose a tag to compare

Notable Changes:

  • Change code generation to reduce the stack usage in non optimized builds (Issue #1034)
    • Move required field support for oneof into a generated helper (#1041)
    • Work around stack usage for non optimize build and switch statements (#1040)
    • Work around excessive stack space in non optimized builds during oneof isInitialized (#1042)
  • Revise the way storage calculations are done to take into account the cost of singular message fields since those directly increase the size of the containing message (#1046)
  • Fix JSON coding/decoding of NullValue WKT (#1051)

Minor Changes:

  • Minor oneof tweak: don't generate case nil when also generating a default (#1035)
  • Factor out the common decodeJSON from all the wrappers (#1062)

1.11.0 Release

06 Aug 18:21
Compare
Choose a tag to compare

Minor changes:

  • Remove empty Data singleton (#1028)
  • Factor SwiftProtobuf module name into the namer, add SwiftProtobufModuleName (#1017)
  • Eliminate NamingUtils's awareness of SwiftProtobufNamer (#1030)

1.10.2 Release

10 Jul 15:21
Compare
Choose a tag to compare

Minor fix for an accidental api break in the 1.10.0 Release.

  • Fixes and version bump to right api break (#1027)

1.10.1 Release

09 Jul 13:20
Compare
Choose a tag to compare

Minor fix for an accidental api break in the 1.10.0 Release.

  • Add back the old init signatures. (#1023)

1.10.0 Release

30 Jun 20:26
Compare
Choose a tag to compare

Notable Changes:

  • Support Proto2 extensions in JSON coder/decoder (#1002)

Minor Changes:

  • Add visitRepeated* methods to the BinaryEncodingSizeVisitory. (#1009)
  • Fix for newer Xcode/swift versions: var --> let to eliminate warning (#975)
  • Don't use StaticString.utf8Start unless there is a pointer rep. (#1015)

1.9.0 Release

18 May 18:24
Compare
Choose a tag to compare
  • Better handing of proto identifiers that start with underscores and numbers #947 #954
  • Added CMake based build for platforms with SwiftPM #957
  • Use withContiguousStorageIfAvailable for String encoding in BinaryEncoder #949
  • Make setting a repeated extension field to [] clear it #966
  • Declare the MessageExtensions with the correct visibility. #969
  • Support for new Proto3 optional (this needs a protoc from protocolbuffers/protobuf v3.12.0 (or later)) #978
  • Provide some more map helpers in the plugin library like the C++ Descriptor. #983
  • Move the SwiftProtobuf.xcodeproj build settings into xcconfig files #986

1.8.0 Release

28 Jan 21:26
Compare
Choose a tag to compare

New features/interfaces:

  • Add Message binary decoding support from ContiguousBytes (#914)
  • Make things generic over ContiguousBytes and @inlinable (#915, #921)

Notable changes:

  • Use heap-based storage only when a Protobuf has a singular transitive recursion (#900)
  • Use raw pointers instead of typed pointers (#918)
  • Add missing CaseIterable support for nested enums (#923)
  • Guard against TextFormat encoding of unknowns from overflowing the stack (#927)

Performance related changes:

  • JSON/TextFormat submessage encoding performance improvements (#916)
  • Avoid collecting unknown fields while scanning for message (#924)
  • Minor code cleanup for JSON additions (#935)

SwiftProtobuf 1.7.0 Release

27 Sep 18:01
Compare
Choose a tag to compare

Complete support for Swift 5.1.

Additions to the library:

  • The generated code for descriptor.proto is now included in the library, this means one no longer has to generate and compile it in if there are proto files that had extension declared on those types. (#727)

Notable changes:

  • The Swift 5.1 compiler will error on switch statements for an enum if it has a large number of cases; this could happen in the generated code. The generated code now splits things up to avoid this compile error. (#904)

SwiftProtobuf 1.6.0 Release

18 Jul 13:36
Compare
Choose a tag to compare

Notable updates:

  • Raise a .illegalNull is the top level JSON is null. (#870)
  • Perf: Use new float formatting code (#882)
  • Specify swift_versions in podspec and minimum CocoaPods 1.7.0 version. (#891)