Releases: swiftlang/swift-foundation
Releases · swiftlang/swift-foundation
Swift 6.2.3 Release
What's Changed
- [6.2] Use
SetFileInformationByHandlefor rename in atomicData.writeon Windows by @compnerd in #1485 - Update package dependencies to release/6.2 by @jmschonfeld in #1488
- Merge release/6.2.1 to release/6.2 by @itingliu in #1501
- Data.mutableSpan and Data.mutableBytes do not perform uniqueness check by @jmschonfeld in #1530
- localizedName_103036605() fails when the current date is around DST change by @itingliu in #1562
Full Changelog: swift-6.2.2-RELEASE...swift-6.2.3-RELEASE
Swift 6.2.2 Release
Full Changelog: swift-6.2.1-RELEASE...swift-6.2.2-RELEASE
Swift 6.2.1 Release
What's Changed
- Update 6.2.1 package dependency branches by @jmschonfeld in #1496
- Locale.Region subregion API is misspelled by @itingliu in #1495
Full Changelog: swift-6.2-RELEASE...swift-6.2.1-RELEASE
Swift 6.2 Release
What's Changed
- Detect current timezone on Android the same as Linux by @marcprux in #1053
- Fix 'var currentDirectoryPath: String' crash when the directory is removed by @ypli-chn in #985
- Fix upper bound in Calendar.RecurrenceRule.recurrences(of:in:) by @Salynn in #1041
- Expose
_identifierCapturingPreferencesforNSLocaleby @itingliu in #1054 - [android] fix the tm_zone access, which is nullable on Android by @hyp in #1056
- Add FoundationPreview 6.2 as an allowed availability annotation by @jmschonfeld in #1057
- Clean up Swift URL build flags by @jrflat in #1063
- Correct buffer size logic when calling
confstrby @jmschonfeld in #1064 - Properly write non-ASCII file names on Windows for file creation by @jmschonfeld in #1059
- Darwin SearchPaths without expanding tilde produce non-tilde-based paths by @jmschonfeld in #1069
- Avoid attaching removefile callbacks when delegate does not implement functions by @jmschonfeld in #1070
- Guard macro declarations behind
hasFeature(Macros)by @DougGregor in #1071 - Home directory for non-existent user should not fall back to /var/empty or %ALLUSERSPROFILE% by @jmschonfeld in #1072
- Minor build fixes/cleanup by @jmschonfeld in #1078
- Updated SF-0007 to version 5 by @iCharlesHu in #1079
- URL.appendingPathExtension("") should not append a trailing dot by @jrflat in #1082
- Ensure that FileManager.copyItem cannot copy directory metadata to files by @jmschonfeld in #1081
- [android] fix 32-bit build by @hyp in #1086
- [docs] Fix typo for some words at 0001-calendar-improvements.md by @lamtrinhdev in #1076
- [Proposal] AttributedString UTF-8 and UTF-16 Views by @jmschonfeld in #1067
- Add linked-on-or-after check for empty URL.host() by @jrflat in #1092
- Fix WASI build of
_copyDirectoryMetadataby @kateinoigakukun in #1094 - Add compatibility check for malformed URL(filePath:) input by @jrflat in #1097
- Follow-up fixes to make it work with wasi-libc by @kateinoigakukun in #1095
- [Windows] Include variant in file path errors by @jmschonfeld in #1085
- Rename NNNN to 0012 for attributedstring-utf8-utf16-views.md. by @lamtrinhdev in #1096
- Implement AttributedString UTF8 and UTF16 views by @jmschonfeld in #1066
- Restore behavior of URL(string: "") returning nil by @jrflat in #1103
- Implement LockedState for Musl by @jmschonfeld in #1101
- Don't try to set extended attributes on Android by @finagolfin in #1106
- (140288075) Use-after-free in Swift implementation of NSData by @phausler in #1108
- [Proposal] AttributedString Scope Enumeration by @jmschonfeld in #1088
- (142076445) Allow URL.standardized to return an empty string URL by @jrflat in #1110
- Add
FoundationPreview 6.1as an allowed availability annotation by @itingliu in #1111 - Properly adjust invalid dates in RecurrenceRule enumeration by @hristost in #1077
- [Proposal] AttributedString Discontiguous Operations by @jmschonfeld in #1089
- [Proposal] AttributedString Tracking Indices by @jmschonfeld in #1090
- Compatibility behaviors for Swift URL by @jrflat in #1113
- Compatibility path for apps looping on URL.deletingLastPathComponent().standardized by @jrflat in #1114
- Make URLResourceValues private properties internal by @iCharlesHu in #1116
- [FreeBSD] Fix FreeBSD build/support by @michael-yuji in #1075
- Allow URLParser to be called directly from ObjC by @jrflat in #1118
- URLComponents.string should percent-encode colons in first path segment if needed by @jrflat in #1117
- Fix parsing foreign currency strings by @itingliu in #1074
- Prevent potential buffer over-reads of file system representations by @jmschonfeld in #1124
- URL.absoluteString crashes if baseURL starts with colon by @jrflat in #1119
- Clean up for #1074 by @itingliu in #1128
- Allow non-numeric port when bridging from CFURL by @jrflat in #1129
- Add review announcement section to the Evolution document by @itingliu in #355
- Publish NSString bridging by @cthielen in #1133
- Include String+Bridging.swift in CMakeLists.txt by @cthielen in #1136
- Do not cache NSLocale.current if we fail to fetch preferences by @itingliu in #1134
- Only use objc name for PropertyListEncoder when building for the framework by @parkera in #1131
- Don't encode colon if URLComponents path starts with colon by @jrflat in #1139
- AttributedString Scope Enumeration by @jmschonfeld in #1093
- URL inits should resolve file reference paths by @jrflat in #1140
- [SF-0015] v2: minor clarifications from API review feedback by @jmschonfeld in #1141
- Temporarily remove special tagged pointer string bridging behavior by @jmschonfeld in #1144
- Increase package deployment target to macOS 15 by @jmschonfeld in #1142
- Prevent crashing when calling quotactl with UIDs greater than Int32.max by @jmschonfeld in #1146
- build: support a non-standard library prefix for Windows by @compnerd in #1143
- Fix Windows .alwaysMapped deallocator by @z2oh in #1147
- Disable a test that fails with ICU-76 by @itingliu in #1151
- Optimize removing nonexistent attributes in AttributedString by @jmschonfeld in #1150
- Use _CalendarGregorian for ISO8601 by @parkera in #1149
- AttributesString.Runs.subscript(nsAttributedStringKeys:) should accept array of keys rather than variadic by @jmschonfeld in #1153
- Swift-Foundation support for Unicode 16 by @itingliu in #1154
- Expanded calendar support by @DraganBesevic in #1138
- [Proposal] HTTP date format by @Lukasa in #1132
- Update the proposal template by @itingliu in #1137
- Add additional base64 tests by @fabianfett in #1155
- Update proposal status by @itingliu in #1158
- Re-add existing SPI for enumerating NSAttributedString.Key Runs by @jmschonfeld in #1162
- Add more base64 decoding test by @fabianfett in #1161
- [Proposal] New HTTP loader for URLSession by @guoye-zhang in #1135
- Fix FreeBSD date formatting by @michael-yuji in #1123
- JSON/PropertyList coders userInfo should require Sendable values by @jmschonfeld in #764
- Revert "JSON/PropertyList coders userInfo should require Sendable values" by @bnbarham in https://github.com/swiftlang/swift-foundation/pu...
Swift 6.1 Release
What's Changed
- Correctly set .fileTypeSymlink on windows by @jmschonfeld in #773
- Bare minimum [U]Int128 support for JSON encode/decode by @stephentyrone in #767
- Update README by @parkera in #796
- URL: Don't standardize relative file paths by @jrflat in #792
- [CMake] Resolve module map conflict with duplicate in SDK by @jmschonfeld in #789
- [CMake] Fix macro install rpath by @jmschonfeld in #793
- Remove unneccessary _FileManagerImpl.delegate by @jmschonfeld in #801
- Update swift-syntax repository link in README.md by @lamtrinhdev in #805
- Add explicit include of
wasi/libc-environ.hby @kateinoigakukun in #786 - Add explicit void type parameter to C functions without parameters by @kateinoigakukun in #775
- Exclude EREMOTE definition for WASI platform by @kateinoigakukun in #778
- Throw
.featureUnsupportedwhen attempting to create temp files on WASI by @kateinoigakukun in #779 - Fix
operatingSystemVersionon WASI by @kateinoigakukun in #782 - Guard out extended or fs attributes related code on WASI by @kateinoigakukun in #784
- Guard out user/group related code on WASI by @kateinoigakukun in #783
- Skip sticky-bit check in
isDeletableFileon WASI by @kateinoigakukun in #785 - Implement
_copyRegularFilefor WASI withoutsendfileby @kateinoigakukun in #787 - Port
LockedStateand_ThreadLocalto WASI without any locking by @kateinoigakukun in #780 - Upgrade SwiftFoundationICU to version 74 by @iCharlesHu in #802
- Prevent null character in Windows home directory by @jrflat in #808
- Adding some more tests for [U]Int128 in BinaryInteger+FormatStyleTests.swift and JSONEncoderTests.swift by @lamtrinhdev in #806
- Add WASI platform conditions for libc imports and word size by @kateinoigakukun in #776
- Add compatibility path for invalid UTF8 data by @parkera in #815
- Remove _typeByName lookup of _FoundationNSNumberInitializer by @jmschonfeld in #817
- Remove FoundationPreview umbrella module by @jmschonfeld in #818
- Enable wasi-libc emulation features by @kateinoigakukun in #777
- Add FoundationNetworking hook for reading contents of remote URL by @jmschonfeld in #820
- rdar://132940984 (Regression: Swift Decoding of Double.greatestFiniteMagnitude as Int causes a crash) by @kperryua in #827
- Add JSON benchmarks and make benchmark package build for more targets by @parkera in #810
- do not import stdatomic as it doesn't work with c++ interop on windows by @hyp in #830
- Use platform shims for clock_gettime to support wasi-libc by @kateinoigakukun in #781
- [wasm] Fall back to a default chunk size when
st_blksizeis not available by @kateinoigakukun in #835 - Add note about 'swift package update' to build process documentation by @jmschonfeld in #837
- Fix ProcessInfo.processName for Windows by @iCharlesHu in #839
- Enable WMO by @jmschonfeld in #832
- FoundationMacros: use cross-compilation to build for host by @compnerd in #714
- Port directory enumeration related code to WASI by @kateinoigakukun in #836
- [android] fix the LP32 armv7/i686 android build by @hyp in #846
- [main] Get Swift-Foundation building against MUSL for Swift Static SDK by @etcwilde in #848
- Resolved an arithmetic overflow error in Decimal division caused by improper upcasting by @iCharlesHu in #850
- Fix hard-coded path to
FoundationEssentialsTestsresources by @xedin in #855 - Hide Windows magic environment values from ProcessInfo.environment by @iCharlesHu in #853
- Add requirements to only run DecimalTests.testCrashingDivision on 64 bit devices by @iCharlesHu in #856
- [Android] Use the Bionic module in more places by @finagolfin in #842
- Use fallback home directory on Windows by @jmschonfeld in #854
- URL.fileSystemPath should drop all trailing slashes by @jrflat in #852
- Fix Windows symlink handling in FileManager APIs by @jmschonfeld in #858
- FileManager.fileExists(atPath:) should follow symlinks on Windows by @jmschonfeld in #859
- Fix Windows home directory for specific user by @jmschonfeld in #861
- Autolink wasi-libc emulation libraries by @kateinoigakukun in #843
- URL(filePath: path, directoryHint: .notDirectory) should strip trailing slashes by @jrflat in #867
- Remove the
#include <setjmp.h>from_CStdlib.hby @kateinoigakukun in #873 - Automatically build FoundationMacros for local CMake builds by @jmschonfeld in #844
- [docs] Fix typo issue at Foundation_Build_Process.md by @lamtrinhdev in #876
- subpathsOfDirectory(atPath:) should throw on empty paths by @jmschonfeld in #869
- Update wording and link in evolution.md by @lamtrinhdev in #814
- Remove RegexBuilder conditional in Package manifest by @jmschonfeld in #879
- Decimal bin compat: remove the usage of @_cdecl from 'public' methods defined in NSDecimal.h by @iCharlesHu in #880
- Fix NSURLComponents bridging with percent-encoding by @jrflat in #831
- URL.host should not return percent-encoded host by @jrflat in #875
- [android] don't enable WMO as the old driver fails to build with WMO … by @hyp in #851
- Formatting performance improvements by @parkera in #884
- URLComponents: support http(s)+unix schemes by @jrflat in #883
- [cmake] Add missing locale_notifications.swift by @etcwilde in #885
- Correct available version macOS 10.10 for String+Essentials.swift by @lamtrinhdev in #886
- Re-enable disabled tests due to ICU-74 by @iCharlesHu in #890
- Change @_nonSendable to unavailable extensions by @jmschonfeld in #892
- Set
SWIFT_SYSTEM_NAMEfor macro project in CMake by @jmschonfeld in #896 - Fix deleteLastPathComponent() for paths with trailing / by @rjmansfield in #897
- ProcessInfoTests.testOperatingSystemIsAtLeastVersion should not run on visionOS by @iCharlesHu in #894
- Implement negative power support to pow(_ x: Decimal, _ y: Int). by @iCharlesHu in #895
- Add a test to make sure ProcessInfo can deliver the correct thermal state and power state on all platforms by @iCharlesHu in #905
- Modernize and update gitignore by @parkera in #911
- Fix macro source location by @etcwilde in #910
- [Proposal] SF-NNNN Extending Calendar.RecurrenceRule.End by @hristost in #893
- Add
.countand.dateproperties toCalendar.RecurrenceRule.Endby @hristost in https://github....
Swift 6.0.3 Release
What's Changed
- [6.0] Fix hard-coded path to
FoundationEssentialsTestsresources by @xedin in #887 - 6.0: Fix WASI support by @MaxDesiatov in #825
- [6.x] Set SWIFT_SYSTEM_NAME for macro project in CMake by @jmschonfeld in #898
- [6.0] URL.host should not return percent-encoded host by @jrflat in #902
- [6.0] URLComponents: support http(s)+unix schemes by @jrflat in #903
- [6.0.x] Fix windows creation of relative symlinks to directories by @jmschonfeld in #940
- [6.0][Android] Enable more code and tests (#871) by @finagolfin in #923
- [6.0.x] [Windows] Fix incorrect TimeZone.current lookup logic by @jmschonfeld in #978
- [6.0.x]
URLpath bug fixes by @jrflat in #969 - [6.0.x] Fetching user/group info causes race conditions (#994) by @jmschonfeld in #998
- [6.0.x] URL: Appending to an empty file path results in an absolute path (#988) by @jrflat in #1019
- [6.0.x] String+Path performance improvements and bug fixes by @jrflat in #1013
- [6.0.x] URL.deletingLastPathComponent() should append .. in special cases by @jrflat in #1022
- [6.0.x] Restore URL.host bracket stripping for compatibility by @jrflat in #1023
Full Changelog: swift-6.0.2-RELEASE...swift-6.0.3-RELEASE