SourceKitten Versions Save

An adorable little framework and command line tool for interacting with SourceKit.

0.21.2

5 years ago
Breaking
  • None.
Enhancements
  • Add support for C-language annotations (e.g. __attribute__((annotate("This is an annotation")))).
    Jeff Verkoeyen

  • Improve support for building & running with Swift 4.2.
    Norio Nomura

  • Add new values for SwiftDeclarationAttributeKind and SyntaxKind with Swift 4.2.
    JP Simard

Bug Fixes
  • None.

0.21.1

5 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes

0.21.0

6 years ago
Breaking
  • SourceKitten now requires Swift 4.0 or higher to build.
    JP Simard
Enhancements
  • Make all SwiftDeclarationAttributeKind cases available no matter which version of Swift was used to compile SourceKitten.
    Marcelo Fabri
Bug Fixes
  • Fix issue locating libsourcekitdInProc.so on some Linux distributions.
    Mike Hovan #513

0.20.0

6 years ago

This is the last release to support Swift 3.2 and Swift 3.3. The next release will require Swift 4.0 or higher.

Breaking
  • Change type of parameter from sourcekitd_object_t to SourceKitObject?.

    • File.process(dictionary:cursorInfoRequest:syntaxMap:)
    • Request.customRequest(request:)
    • SwiftDocs.init(file:dictionary:cursorInfoRequest:) Norio Nomura
  • Remove File.lines:setter.
    Norio Nomura

Enhancements
  • Add SwiftDeclarationAttributeKind that represents declaration attributes in Swift.
    Daniel Metzing #504

  • Add SourceKitObject that represents sourcekitd_object_t in Swift.
    Norio Nomura #489

  • Replaced linear index search with binary search in NSString extension.
    Tamas Lustyik

  • SourceKit search strategy improved on Linux. Supports swiftenv.
    Alexander Lash

  • Add elements case to SwiftDocKey.
    Sho Ikeda

  • Added module_info command to sourcekitten CLI.
    Erik Abair

Bug Fixes

0.19.1

6 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Fix Swift Package Manager warnings when using SourceKitten targets as dependencies.
    JP Simard #478

0.19.0

6 years ago
Breaking
  • SourceKitten now requires Xcode 9 and Swift 3.2+ to build.
    Norio Nomura

  • Deprecated Request.failableSend(). Please use Request.send() instead.
    Norio Nomura

  • Some APIs changed to throws.

    • File.format(trimmingTrailingWhitespace:useTabs:indentWidth:) throws
    • Structure.init(file:) throws
    • SyntaxMap.init(file:) throws Norio Nomura
Enhancements
Bug Fixes
  • Fix Swift declarations when generating Objective-C docs for generic types.
    John Fairhurst

0.18.4

6 years ago
Breaking
  • None.
Enhancements
  • None.
Bug Fixes
  • Fix Swift 4.0.2 deprecation warnings in dependencies, specifically SWXMLHash.
    Norio Nomura

0.18.3

6 years ago
Breaking
  • None.
Enhancements
Bug Fixes
  • Preserve horizontal alignment in multi-line Swift declarations.
    John Fairhurst

0.18.2

6 years ago
Breaking
  • None.
Enhancements
  • Add tabWidth parameter (default: 1) for lineAndCharacter.
    Marcel Jackwerth

  • Add File(pathDeferringReading:) initializer.
    JP Simard

Bug Fixes
  • Fix Swift declarations when generating Objective-C docs being truncated where ampersands were included.
    JP Simard

0.18.1

6 years ago
Breaking
  • None.
Enhancements
  • Updates to support Xcode 9 beta 5 & accompanying versions of Swift 3.2/4.0.
    JP Simard
Bug Fixes
  • Fix compilation failures due to long debug times by removing compiler flag: -warn-long-function-bodies=200.
    Marcelo Fabri