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

Fix internal consistency issues. See #30 #31

Merged
merged 1 commit into from Jan 15, 2017

Conversation

bitwalker
Copy link
Collaborator

See our previous discussion on #30

This PR touches many modules, but all changes are relatively small. If you have any concerns about any of them, let me know and I can try to explain in more detail.

  • Adapters now return Maxwell.Conn.t instead of {:ok, Maxwell.Conn.t}
  • Middleware are now unified around returning Maxwell.Conn.t instead of
    {:ok, Maxwell.Conn.t}
  • Fix broken Rels middleware
  • Update and add missing typespecs
  • Update tests (and fix test warnings on newer Erlang/Elixir versions)
  • A few documentation tweaks, spelling, etc.

The gist is the following:

  • Existing third-party middleware modules should not need to make any changes
  • Third-party adapter modules will need to ensure they return Maxwell.Conn.t instead of {:ok, Maxwell.Conn.t}, this is a breaking change, but essential to fix the internal consistency issues.
  • Existing built-in middlewares that were previously broken are now working as expected.

- Adapters now return Maxwell.Conn.t instead of {:ok, Maxwell.Conn.t}
- Middleware are now unified around returning Maxwell.Conn.t instead of
  {:ok, Maxwell.Conn.t}
- Fix broken Rels middleware
- Update and add missing typespecs
- Update tests
- A few documentation tweaks, spelling, etc.
@coveralls
Copy link

coveralls commented Jan 15, 2017

Coverage Status

Coverage remained the same at 100.0% when pulling f027c07 on bitwalker:fix-30 into 366ad6e on zhongwencool:master.

4 similar comments
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f027c07 on bitwalker:fix-30 into 366ad6e on zhongwencool:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f027c07 on bitwalker:fix-30 into 366ad6e on zhongwencool:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f027c07 on bitwalker:fix-30 into 366ad6e on zhongwencool:master.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling f027c07 on bitwalker:fix-30 into 366ad6e on zhongwencool:master.

This was referenced Jan 15, 2017
@bitwalker bitwalker merged commit c583e17 into zhongwencool:master Jan 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants