18 KiB
0.5.0 (9 November 2020)
This is a compatibility release with small feature additions. Namely the Link
view is now available,
and our JavaScriptKit dependency has been updated. The latter change now allows you to open
Package.swift
package manifests of your Tokamak projects with working auto-complete in Xcode.
Also, our dark mode implementation now more closely follows SwiftUI behavior.
Many thanks to @carson-katri and @kateinoigakukun for their contributions to this release!
Closed issues:
- Can't build Tokamak project - carton dev command (#296)
- Colors should change depending on light/dark color scheme (#290)
- Pattern for handling global dom events (#284)
- 0.4.0 upgrade / regression? (#283)
Merged pull requests:
- Xcode compatibility (#297) via @kateinoigakukun
- Allow tests to be run on macOS (#295) via @MaxDesiatov
- Add Link view, update JavaScriptKit to 0.8.0 (#276) via @carson-katri
- Add
AnyColorBox
andAnyFontBox
(#291) via @carson-katri - Replace Danger with SwiftLint to improve warnings (#293) via @MaxDesiatov
- Use v5.3 tag of
swiftwasm-action
inci.yml
(#292) via @MaxDesiatov - Add @carson-katri and @kateinoigakukun to
FUNDING.yml
(#289) via @MaxDesiatov - Add
URLHashDemo
w/window.onhashchange
closure (#288) via @MaxDesiatov
0.4.0 (30 September 2020)
This is mainly a bugfix and compatibility release with a small feature addition. Namely, Slider
view is introduced in the DOM renderer, and binding updates for SVG elements are working now. During
this development cycle efforts of our team were devoted to recently released JavaScriptKit
0.7 and carton
0.6. Both of those releases are pretty big
updates that improve developer experience significantly, and this version of Tokamak requires those
as minimum versions.
Many thanks to @j-f1 and @kateinoigakukun for their contributions to these updates!
Closed issues:
- HTML + Binding (#278)
Merged pull requests:
- Fix compatibility with JavaScriptKit 0.7 (#281) via @MaxDesiatov
- Re-export
HTML
type inTokamakDOM
(#275) via @kateinoigakukun - Use setAttribute, not properties to fix SVG update (#279) via @MaxDesiatov
- Allow non-body mount host node (#271) via @kateinoigakukun
- Add missing JavaScriptKit import to
README.md
(#265) via @MaxDesiatov - Fix the sizing of sliders (#268) via @j-f1
- Add
Slider
implementation (#228) via @j-f1 - Remove Xcode 12 warning from README.md (#264) via @MaxDesiatov
0.3.0 (19 August 2020)
This release improves compatibility with the SwiftUI API and fixes bugs in our WebAssembly/DOM renderer, included but not limited to:
- support for
App
/Scene
lifecycle; ColorScheme
detection and environment setting;- dark mode styles;
@StateObject
property wrapper implementation;SidebarListStyle
,ButtonStyle
,GeometryProxy
types;NavigationView
andGeometryReader
views.
Additionally, new TokamakStaticHTML
renderer was added that supports rendering stateless views into static HTML that doesn't include any JavaScript or WebAssembly dependencies. This is useful for static websites and in the future could be used together with TokamakDOM
for server-side rendering.
Tokamak 0.3.0 now requires 5.3 snapshots of SwiftWasm, which in general should be more stable than the development snapshots that were previously used, and is also compatible with Xcode 12 betas. If you have a .swift-version
file in your project, you should specify wasm-5.3-SNAPSHOT-2020-07-27-a
in it or a later 5.3 snapshot, otherwise carton
0.5 selects a compatible 5.3 snapshot for you automatically. Allowing carton
to select a default snapshot is the recommended approach, so in general we recommend avoiding .swif-version
files in projects that use Tokamak.
Many thanks to @carson-katri, @j-f1, and @Outcue for their contributions to this release.
The complete list of changes included in this release is available below.
Closed issues:
- Command "carton dev" failed (#258)
- Dark mode detection causes crashes in Safari (#245)
- Add dark color scheme style (#237)
- Establish App lifecycle as the only way to start rendering (#224)
- Runtime issues with dynamic properties in
App
types (#222) List
appearance changes when reloaded (#212)- List scrolling does not work on Firefox 78 on macOS (#211)
- Scrolling broken when
List
is child ofNavigationView
(#208) Rectangle
frame is not being set properly (#185)- Implement
SidebarListStyle
(#180) - Implement
GeometryReader
/GeometryProxy
(#176) @StateObject
support (#158)- NavigationView/NavigationLink (#129)
Merged pull requests:
- Set versions of dependencies in
Package.swift
(#262) via @MaxDesiatov - Implement
StateObject
property wrapper (#260) via @MaxDesiatov - Fix
NavigationView
broken state after re-render (#259) via @MaxDesiatov - Add
GeometryReader
implementation (#239) via @MaxDesiatov - Add default dark styles for Views (#241) via @carson-katri
- Link to the renderers guide from
README.md
(#251) via @MaxDesiatov - Use the latest 5.3 snapshot in
.swift-version
(#252) via @MaxDesiatov - Fix color scheme observer crashes in Safari (#249) via @MaxDesiatov
- Update to the latest version of SwiftFormat (#250) via @MaxDesiatov
- Split demo list into sections (#243) via @j-f1
- Remove some
AnyView
in theList
implementation (#246) via @MaxDesiatov - Add
_targetRef
and_domRef
modifiers (#240) via @MaxDesiatov - Add
ColorScheme
environment (#136) via @MaxDesiatov - Add
redacted
modifier (#232) via @carson-katri - Add Static HTML Renderer and Documentation (#204) via @carson-katri
- Fix tests, move
DefaultButtonStyle
to TokamakCore (#234) via @MaxDesiatov - Remove
DefaultApp
, makeDOMRenderer
internal (#227) via @MaxDesiatov - Add basic
ButtonStyle
implementation (#214) via @MaxDesiatov - Make reconciler tests build and run on macOS (#229) via @MaxDesiatov
- Fix environment changes causing remounted scenes with lost state (#223) via @MaxDesiatov
- Add
DefaultApp
type to simplifyDOMRenderer.init
(#217) via @MaxDesiatov - Implement
SidebarListStyle
(#210) via @Outcue - Unify code of
MountedApp
/MountedCompositeView
(#219) via @MaxDesiatov - Generalize style and environment in
DOMRenderer
(#215) via @MaxDesiatov - Implement
DynamicProperty
(#213) via @carson-katri - Warn against beta versions of Xcode in README.md (#207) via @MaxDesiatov
- Fix typo in
TokamakDemo.swift
(#206) via @MaxDesiatov - Update "Requirements" and "Getting started" README sections (#205) via @MaxDesiatov
- Initial
NavigationView
implementation (#130) via @j-f1 - Add SwiftUI App Lifecycle (#195) via @carson-katri
0.2.0 (21 July 2020)
This is the first release that supports WebAssembly and browser apps with the new TokamakDOM
module. The API now closely follows SwiftUI, while the new React-like API is no longer available.
Unfortunately, since older versions of iOS don't support opaque
types, and you already can use
SwiftUI on iOS versions that do support it, iOS and macOS renderers are no longer available. Many
thanks to @carson-katri, @j-f1,
@helje5, @hodovani,
@Outcue, @filip-sakel and
@noontideox for their contributions to this release!
Closed issues:
- State vars have to be first (#190)
- Implicit 8 pixel margin added to html body (#188)
- Unable to set Color value (#186)
- Crash in protocol conformance code (#167)
- Extend Path to match the SwiftUI API (#156)
- Some primitive Views cannot access @Environment (#139)
- Logo for the project (#132)
- ZStack? (#111)
- View has - by default - a Body of type Never. (#110)
- Getting value of type 'String' has no member 'components' (#108)
- Does iOS 10 work? (#105)
- Add Tokamak project linter (#77)
- Ambiguous reference to member 'node' (#68)
Merged pull requests:
- Move view files to separate subdirectories (#194) via @MaxDesiatov
- Add
UIColor
stub and newColor.init(_:UIColor)
(#196) via @MaxDesiatov - Add Toggle implementation (#159) via @j-f1
- Add
TokamakShim
module to simplify imports (#192) via @MaxDesiatov - Organize all the re-exports into a single file (#193) via @j-f1
- Add
Picker
andPopUpButtonPickerStyle
as default (#149) via @MaxDesiatov - Add @EnvironmentObject (#170) via @carson-katri
- Allow non-consecutive state variables (#191) via @j-f1
- Add @ObservedObject implementation (#171) via @MaxDesiatov
- Avoid AnyView in the Counter code (#168) via @MaxDesiatov
- Mention
#webassembly
SwiftPM Slack channel in README.md (#187) via @MaxDesiatov - Add LazyHGrid and LazyVGrid (#179) via @carson-katri
- Implement
static func Binding<Value>.constant
(#178) via @MaxDesiatov - Extend Color to match SwiftUI (#177) via @carson-katri
- Add Text concatenation via + operator (#174) via @carson-katri
- Extend Path to match SwiftUI (#172) via @carson-katri
- Allow modified views to fill their parent if a child requires it (#165) via @carson-katri
- Build macOS demo on CI (#164) via @MaxDesiatov
- Add List and related Views (#147) via @carson-katri
- ViewBuilder buildIf fix (#162) via @carson-katri
- Use
let
instead ofvar
inTextFieldStyleKey: EnvironmentKey
(#160) via @MaxDesiatov - Update Acknowledgments section in README.md (#157) via @MaxDesiatov
- Credit SwiftWebUI in a special way in README.md (#140) via @MaxDesiatov
- Add Group implementation (#150) via @MaxDesiatov
- Update AnyView status in progress.md (#151) via @MaxDesiatov
- Use a range instead of an array in ForEach (#153) via @MaxDesiatov
- Documentation comments (#143) via @carson-katri
- Add Xcode project and native targets (#142) via @j-f1
- Add AppearanceActionModifier, onAppear/onDisappear (#145) via @MaxDesiatov
- Add doc comment to the ViewDeferredToRenderer protocol (#144) via @MaxDesiatov
0.1.2 (18 March, 2019)
Update example code in README for CocoaPods page.
0.1.1 (18 March, 2019)
Update rendered README.md on CocoaPods page.
0.1.0 (18 March, 2019)
First release with an iOS renderer for UIKit and a basic macOS renderer for AppKit.