Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update iOS JavaScript shim #2

Merged
merged 2 commits into from
Sep 12, 2023
Merged

Update iOS JavaScript shim #2

merged 2 commits into from
Sep 12, 2023

Conversation

dginsburg
Copy link
Contributor

Small change to the iOS JS code to match the changes from hotwired/strada-web#2

@dginsburg
Copy link
Contributor Author

I'm not sure what the test failure is here with CI. The tests succeed when I run them locally.

@svara
Copy link
Collaborator

svara commented Aug 9, 2023

@jayohms Is this PR still relevant?

@dginsburg
Copy link
Contributor Author

dginsburg commented Aug 9, 2023

@svara @jayohms Yeah, I believe it's still necessary. It was as of a few weeks ago when I pulled down the latest from main branches in both repos.

I'm excited to see activity. Looking forward to the public release.

@jayohms
Copy link
Collaborator

jayohms commented Aug 9, 2023

@svara @dginsburg Yep this PR is still necessary, but it's a breaking change from what we use in the HEY web app. So, we can't merge or include this in new versions until we shim these changes and roll them out to HEY production. I've got a HEY PR ready, but it probably won't ship for a couple weeks.

@dginsburg We'll be open sourcing the libraries next month and I'm giving a Strada talk at Rails World in October 🙌

* main: (66 commits)
  Expose, by making `didReceive(message:)` and all of component's view lifecycle functions public. This allows to use them for testing.
  Add example component tests.
  Define `BridgingDelegate` to  enable component testing by mocking the component's delegate.
  Add reply(with:) function to `BridgeDelegate` to avoid accessing the bridge directly from within the BridgeComponent.
  Expose `Message` and `Message.Metadata`'s initializers.
  Bump min iOS version in package to iOS 14.
  Refactor logging using the logger with appropriate log levels.
  Add `debugLoggingEnabled` flag to config.
  Define enabled and disabled loggers.
  Move user agent substring generation from `Bridge` to `Strada`.
  Move json encoder/decoder configurations to a config inside a Strada namespace.
  Tweak `Message` file structure.
  Rename Message's functions related to Encodable types.
  Rename reply(to:) functions.
  Rename Message's decodedJsonData() to decodedDataObject().
  Tweak Message's replacing with an encodable object function. Add tests for replyTo with a Codable.
  Add option to reply with a Encodable type.
  Improve decoder related `Message` tests.
  Add `BridgeComponent` tests.
  Add option to reply to an event.
  ...

# Conflicts:
#	Source/strada.js
@jayohms jayohms merged commit 3f8e6a0 into main Sep 12, 2023
@jayohms jayohms deleted the incorporate-stimulus-polywork branch September 12, 2023 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants