From 20dd1fc5040c740850fcf3a647fc313fdc64014d Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Mon, 12 Feb 2024 11:07:34 -0800 Subject: [PATCH 1/2] [README] Update doc links --- README.md | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c7b54497..8e1a2ccb 100644 --- a/README.md +++ b/README.md @@ -22,22 +22,20 @@ The package currently provides the following implementations: - [`TreeSet`][TreeSet] and [`TreeDictionary`][TreeDictionary], persistent hashed collections implementing Compressed Hash-Array Mapped Prefix Trees (CHAMP). These work similar to the standard `Set` and `Dictionary`, but they excel at use cases that mutate shared copies, offering dramatic memory savings and radical time improvements. -[BitSet]: Documentation/BitSet.md -[BitArray]: Documentation/BitArray.md -[Deque]: Documentation/Deque.md -[Heap]: Documentation/Heap.md -[OrderedSet]: Documentation/OrderedSet.md -[OrderedDictionary]: Documentation/OrderedDictionary.md -[TreeSet]: Documentation/TreeSet.md -[TreeDictionary]: Documentation/TreeDictionary.md +[BitSet]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/bitcollections/bitset +[BitArray]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/bitcollections/bitarray +[Deque]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/dequemodule/deque +[Heap]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/heapmodule/heap +[OrderedSet]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/orderedcollections/orderedset +[OrderedDictionary]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/orderedcollections/ordereddictionary +[TreeSet]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/hashtreecollections/treeset +[TreeDictionary]: https://swiftpackageindex.com/apple/swift-collections/1.1.0/documentation/hashtreecollections/treedictionary -The following data structures are currently under development but they aren't ready for inclusion in a tagged release: +The following additional data structures are currently under development but they aren't stable enough to preview yet. - [`SortedSet` and `SortedDictionary`](https://github.com/apple/swift-collections/pull/65), sorted collections backed by in-memory persistent b-trees. - [`SparseSet`](https://github.com/apple/swift-collections/pull/80), a constant time set construct, trading off memory for speed. -[Heap]: Documentation/Heap.md - Swift Collections uses the same modularization approach as [**Swift Numerics**](https://github.com/apple/swift-numerics): it provides a standalone module for each thematic group of data structures it implements. For instance, if you only need a double-ended queue type, you can pull in only that by importing `DequeModule`. `OrderedSet` and `OrderedDictionary` share much of the same underlying implementation, so they are provided by a single module, called `OrderedCollections`. However, there is also a top-level `Collections` module that gives you every collection type with a single import statement: ``` swift From e424b487611d755ee5fe94271dd69677cc7688f0 Mon Sep 17 00:00:00 2001 From: Karoy Lorentey Date: Mon, 12 Feb 2024 11:07:48 -0800 Subject: [PATCH 2/2] [README] Describe branching strategy --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 8e1a2ccb..cfcd106c 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,22 @@ We have a dedicated [Swift Collections Forum][forum] where people can ask and an If you find something that looks like a bug, please open a [Bug Report][bugreport]! Fill out as many details as you can. +### Branching Strategy + +We maintain separate branches for each minor version of the package: + +| Package version | Branch | +| ----------------------- | ----------- | +| swift-collections 1.0.x | release/1.0 | +| swift-collections 1.1.x | release/1.1 | +| swift-collections 1.2.x | main | + +Changes must land on the branch corresponding to the earliest release that they will need to ship on. They are periodically propagated to subsequent branches, in the following direction: + +`release/1.0` → `release/1.1` → `main` + +For example, anything landing on `release/1.0` will eventually appear on `release/1.1` and then `main` too; there is no need to file standalone PRs for each release line. (Change propagation currently requires manual work -- it is performed by project maintainers.) + ### Working on the package We have some basic [documentation on package internals](./Documentation/Internals/README.md) that will help you get started. @@ -124,8 +140,9 @@ By submitting a pull request, you represent that you have the right to license y #### Fixing a bug or making a small improvement -1. [Submit a PR][PR] with your change. If there is an [existing issue][issues] for the bug you're fixing, please include a reference to it. -2. Make sure to add tests covering whatever changes you are making. +1. Make sure to start by checking out the appropriate branch for the minor release you want the fix to ship in. (See above.) +2. [Submit a PR][PR] with your change. If there is an [existing issue][issues] for the bug you're fixing, please include a reference to it. +3. Make sure to add tests covering whatever changes you are making. [PR]: https://github.com/apple/swift-collections/compare [issues]: https://github.com/apple/swift-collections/issues