Swiftpack.co - Swift Packages by subconsciousnetwork

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.

Packages published by subconsciousnetwork

subconsciousnetwork/noosphere swift-noosphere-v0.16.1
Noosphere is a protocol for thought; let's discover it together!
⭐️ 635
🕓 12 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
noosphere: v0.16.1
12 weeks ago
### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-core bumped from 0.18.0 to 0.18.1 * noosphere-storage bumped from 0.10.0 to 0.10.1 * noosphere-ipfs bumped from 0.8.5 to 0.8.6 * noosphere-into bumped from 0.11.5 to 0.11.6 * dev-dependencies * noosphere-core bumped from 0.18.0 to 0.18.1
noosphere-storage: v0.10.1
12 weeks ago
## [0.10.1](https://github.com/subconsciousnetwork/noosphere/compare/noosphere-storage-v0.10.0...noosphere-storage-v0.10.1) (2024-01-30) ### Features * Force quit rocksdb worker threads upon dropping. ([#734](https://github.com/subconsciousnetwork/noosphere/issues/734)) ([21bf742](https://github.com/subconsciousnetwork/noosphere/commit/21bf7425cb2fe4ef64ea4fc71696f8f81e5cdd5f))
noosphere-ns: v0.12.0
12 weeks ago
## [0.12.0](https://github.com/subconsciousnetwork/noosphere/compare/noosphere-ns-v0.11.5...noosphere-ns-v0.12.0) (2024-01-30) ### ⚠ BREAKING CHANGES * Add axum tooling to provide w3c tracecontexts in response payloads ([#780](https://github.com/subconsciousnetwork/noosphere/issues/780)) ### Features * Add axum tooling to provide w3c tracecontexts in response payloads ([#780](https://github.com/subconsciousnetwork/noosphere/issues/780)) ([4d84bea](https://github.com/subconsciousnetwork/noosphere/commit/4d84bead9763f48385ae428c59aafa7293311e12)) ### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-storage bumped from 0.10.0 to 0.10.1 * noosphere-core bumped from 0.18.0 to 0.18.1 * noosphere bumped from 0.16.0 to 0.16.1 * noosphere-ipfs bumped from 0.8.5 to 0.8.6
noosphere-ipfs: v0.8.6
12 weeks ago
### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-storage bumped from 0.10.0 to 0.10.1 * dev-dependencies * noosphere-core bumped from 0.18.0 to 0.18.1
noosphere-into: v0.11.6
12 weeks ago
### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-core bumped from 0.18.0 to 0.18.1 * noosphere-storage bumped from 0.10.0 to 0.10.1 * dev-dependencies * noosphere-core bumped from 0.18.0 to 0.18.1
noosphere-gateway: v0.12.0
12 weeks ago
## [0.12.0](https://github.com/subconsciousnetwork/noosphere/compare/noosphere-gateway-v0.11.0...noosphere-gateway-v0.12.0) (2024-01-30) ### ⚠ BREAKING CHANGES * Add axum tooling to provide w3c tracecontexts in response payloads ([#780](https://github.com/subconsciousnetwork/noosphere/issues/780)) * The gateway should not call initialize_tracing ([#767](https://github.com/subconsciousnetwork/noosphere/issues/767)) ### Features * Add axum tooling to provide w3c tracecontexts in response payloads ([#780](https://github.com/subconsciousnetwork/noosphere/issues/780)) ([4d84bea](https://github.com/subconsciousnetwork/noosphere/commit/4d84bead9763f48385ae428c59aafa7293311e12)) ### Bug Fixes * The gateway should not call initialize_tracing ([#767](https://github.com/subconsciousnetwork/noosphere/issues/767)) ([d388dec](https://github.com/subconsciousnetwork/noosphere/commit/d388dec99be8c064f9af44b94ec517990aeefff1)) ### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-ipfs bumped from 0.8.5 to 0.8.6 * noosphere-core bumped from 0.18.0 to 0.18.1 * noosphere-ns bumped from 0.11.5 to 0.12.0 * noosphere-storage bumped from 0.10.0 to 0.10.1 * dev-dependencies * noosphere-core bumped from 0.18.0 to 0.18.1
noosphere-core: v0.18.1
12 weeks ago
## [0.18.1](https://github.com/subconsciousnetwork/noosphere/compare/noosphere-core-v0.18.0...noosphere-core-v0.18.1) (2024-01-30) ### Features * add Content-Length headers when writing to a sphere. ([#582](https://github.com/subconsciousnetwork/noosphere/issues/582)) ([6cedf47](https://github.com/subconsciousnetwork/noosphere/commit/6cedf473ed234d5168c7f4470a88c486d888415a)) * Add support for BYO tracing_subscriber ([#779](https://github.com/subconsciousnetwork/noosphere/issues/779)) ([0213b51](https://github.com/subconsciousnetwork/noosphere/commit/0213b51734b4352aa3a55f4ec3cf48ea3cec59ec)) ### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-storage bumped from 0.10.0 to 0.10.1 * noosphere-collections bumped from 0.7.0 to 0.7.1
noosphere-collections: v0.7.1
12 weeks ago
### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-storage bumped from 0.10.0 to 0.10.1
noosphere-cli: v0.17.0
12 weeks ago
## [0.17.0](https://github.com/subconsciousnetwork/noosphere/compare/noosphere-cli-v0.16.0...noosphere-cli-v0.17.0) (2024-01-30) ### ⚠ BREAKING CHANGES * Add axum tooling to provide w3c tracecontexts in response payloads ([#780](https://github.com/subconsciousnetwork/noosphere/issues/780)) ### Features * `orb version` command ([#741](https://github.com/subconsciousnetwork/noosphere/issues/741)) ([608774e](https://github.com/subconsciousnetwork/noosphere/commit/608774ec4252c4b083508284646ea0fd911fa32c)) * Add axum tooling to provide w3c tracecontexts in response payloads ([#780](https://github.com/subconsciousnetwork/noosphere/issues/780)) ([4d84bea](https://github.com/subconsciousnetwork/noosphere/commit/4d84bead9763f48385ae428c59aafa7293311e12)) ### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-ipfs bumped from 0.8.5 to 0.8.6 * noosphere-core bumped from 0.18.0 to 0.18.1 * noosphere-storage bumped from 0.10.0 to 0.10.1 * noosphere-gateway bumped from 0.11.0 to 0.12.0 * noosphere-ns bumped from 0.11.5 to 0.12.0 * noosphere bumped from 0.16.0 to 0.16.1
noosphere: v0.16.0
22 weeks ago
## [0.16.0](https://github.com/subconsciousnetwork/noosphere/compare/noosphere-v0.15.4...noosphere-v0.16.0) (2023-11-21) ### ⚠ BREAKING CHANGES * Initial work refactoring noosphere-gateway to be generic over the ([#698](https://github.com/subconsciousnetwork/noosphere/issues/698)) ### Features * Fix nightly builds and add to CI. ([#690](https://github.com/subconsciousnetwork/noosphere/issues/690)) ([344dd7a](https://github.com/subconsciousnetwork/noosphere/commit/344dd7ad20226232ce9545a9399de0c1c17f6687)) * Initial work refactoring noosphere-gateway to be generic over the ([#698](https://github.com/subconsciousnetwork/noosphere/issues/698)) ([92f0d8a](https://github.com/subconsciousnetwork/noosphere/commit/92f0d8a6ff4a76dd971f6e945fcc7ddb01019699)) ### Dependencies * The following workspace dependencies were updated * dependencies * noosphere-core bumped from 0.17.3 to 0.18.0 * noosphere-storage bumped from 0.9.3 to 0.10.0 * noosphere-ipfs bumped from 0.8.4 to 0.8.5 * noosphere-into bumped from 0.11.4 to 0.11.5 * dev-dependencies * noosphere-core bumped from 0.17.3 to 0.18.0
iOS macOS
subconsciousnetwork/ObservableStore v0.6.1
A lightweight Elm-like Store for SwiftUI
⭐️ 39
🕓 18 weeks ago
🔖 Release Notes

Releases

The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
v0.6.1
18 weeks ago
## What's Changed * Fix Fx memory leak through Publisher.flatMap by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/45 **Full Changelog**: https://github.com/subconsciousnetwork/ObservableStore/compare/v0.6.0...v0.6.1
v0.6.0
20 weeks ago
## What's Changed * Log actions publicly by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/44 **Full Changelog**: https://github.com/subconsciousnetwork/ObservableStore/compare/v0.5.0...v0.6.0
v0.5.0
20 weeks ago
## What's Changed * Make update a protocol by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/43 **Full Changelog**: https://github.com/subconsciousnetwork/ObservableStore/compare/v0.4.0...v0.5.0
v0.4.0
34 weeks ago
## What's Changed * Update README by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/23 * Introduce ViewStore, allowing scoped portions of state to be passed down to views @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/25 * Access ViewStore state dynamically via closure by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/36 * Allow initializing first update from closure by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/30 * Introduce Future extensions for bridging to async-await by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/32 * minor grammar cleanup by @pmulard in https://github.com/subconsciousnetwork/ObservableStore/pull/33 ## New Contributors * @pmulard made their first contribution in https://github.com/subconsciousnetwork/ObservableStore/pull/33 **Full Changelog**: https://github.com/subconsciousnetwork/ObservableStore/compare/v0.3.0...v0.4.0
v0.3.0
1 year ago
## What's Changed * Introduce `actions` publisher by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/22 * Introduce KeyedCursorProtocol, remove ViewStore in favor of forward by @gordonbrander in https://github.com/subconsciousnetwork/ObservableStore/pull/19 **Full Changelog**: https://github.com/subconsciousnetwork/ObservableStore/compare/0.2.0...v0.3.0 ## Breaking: removed `ViewStore` in favor of `forward` ViewStore has been removed in favor of a new child component patter that is closer to vanilla SwiftUI. The key problem with the ViewStore approach was that the getter for the store value _dynamically_ got the value, meaning that for stores of list items, the state of the store always had to be an Optional. SwiftUI avoids this problem by passing down bare properties to list items. See #19 for more details. Child components are now handled the way you handle child components in vanilla SwiftUI, with bare state and a `send` method. ```swift struct ChildView: View { var state: ChildModel var send: (ChildAction) -> Void var body: some View { VStack { Text("Count \(state.count)") Button( "Increment", action: { store.send(ChildAction.increment) } ) } } } ``` To integrate the child view, we can use `Address.forward` to create a tagged send function for the child that will translate all child actions into parent actions. ```swift struct ContentView: View { @StateObject private var store = Store( state: AppModel(), environment: AppEnvironment() ) var body: some View { ChildView( state: store.state.child, send: Address.forward( send: store.send, tag: AppChildCursor.tag ) ) } } ``` ## Breaking: Binding signature change Bindings have changed from `Binding(store:get:tag)` to `Binding(get:send:tag:)`. Typical use looks like this: ```swift TextView( "Placeholder", Binding( get: { store.state.text }, send: store.send, tag: Action.setText ) ) ``` The old signature relied on ViewStore's conformance to `StoreProtocol`. The new signature just requires a getter closure and a send function, so is less opinionated about the specifics of this library. ## Actions publisher `Store` now exposes `Store.actions`, a publisher which publishes all actions sent to `send`. This is useful for logging actions. It is also useful for integrating `ObservableStore` with other SwiftUI features, or for wiring together stores in codebases that use multiple stores. Now both state and actions are published (state already has a publisher through `$state`), so it is easy to wired up store events to other SwiftUI features using `onReceive`. Logging example: ```swift .onReceive(store.actions) { action in // do logging } ```
0.2.0
1 year ago
Version 0.2.0 is an important update to ObservableStore. It introduces the ability to create scoped stores for sub-components, called `ViewStores`. `ViewStores` are conceptually like bindings to stores, except that they expose the store API, instead of a binding API. This approach is inspired by the component mapping pattern from Elm. ## Changes - Introduce `StoreProtocol`, a protocol that describes a kind of store. - Introduce `ViewStore<Model: ModelProtocol>`, which implements `StoreProtocol` - Implement `StoreProtocol` for `Store` - Introduce `CursorProtocol`, which describes how to map from one domain to another, and provides a convenience function for updating child components. - Introduce `ModelProtocol`, which implements an `update(state:action:environment)` static function. - `ModelProtocol` allows us to treat action and environment as associatedtypes, which simplifies many of our other type signatures. - Synthesize `update(state:actions:environment)` method for any type that implements `ModelProtocol`. This allows you to dispatch multiple actions immediately in sequence, effectively composing multiple actions. - This helper replaces `pipe` - Useful when dispatching actions down to multiple child sub-components - Add new tests ## Breaking changes - Store requires that state implement `ModelProtocol`. This allows us to simplify the signatures of many other APIs - Update type signature changes from `Update<State, Action>` to `Update<Model: ModelProtocol>`. - Store type signature changes from `Store<State, Action, Environment>` to `Store<Model: ModelProtocol>` - Store initializer changes from `Store.init(update:state:environment:)` to `Store.init(state:environment:)`. Now that state conforms to `ModelProtocol`, you don't have to explicitly pass in the update function as a closure. We can just call the protocol implementation. - `store.binding` has been removed in favor of `Binding(store:get:send:)` - Remove Update.pipe. Redundant now. Was never happy with it anyway. It was an inelegant way to accomplish the same thing as `update(state:actions:environment:)`. - Join fx on main with a `.default` QoS. We have reduced the QoS from `.userInteractive` to avoid spamming that QoS with actions. This should not affect ordinary use of ObservableStore. fx are async/never block user interaction anyway, so a default QoS should be fine.
0.1.0
2 years ago
Introduces new features, bugfixes, and cleans up geneneric type arguments, function signatures, and argument labels. Note for upgrading from 0.0.7 to 0.1.0: 0.1.0 includes breaking changes to APIs. Because this version is pre-1.0, and we are still working out APIs, these breaking changes are expressed as a minor revision (0.1.0) instead of a major revision. Release notes: - Changed Store generic signature to `Store<State, Action, Environment>`. See https://github.com/gordonbrander/ObservableStore/pull/14 - Changed update function signature to `update(State, Action, Environment)`. See https://github.com/gordonbrander/ObservableStore/pull/14 - Removed argument label from send so it is just `Store.send(_)`. See https://github.com/gordonbrander/ObservableStore/pull/10 - Changed argument label for subscribe to `Store.subscribe(to:)`. See https://github.com/gordonbrander/ObservableStore/pull/10 - Introduced `.binding(get:tag:)` so that constructing a binding without specifying an animation will leave transaction animation untouched. See https://github.com/gordonbrander/ObservableStore/pull/12 - Added `Update.mergeFx(_)` which can be used to merge additional fx into an Update. Useful when composing update functions with `Update.pipe`. See https://github.com/gordonbrander/ObservableStore/pull/9 - Removed `Update.transaction` method. See https://github.com/gordonbrander/ObservableStore/pull/9
iOS macOS

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics