Current section
14 Versions
Jump to
Current section
14 Versions
Compare versions
5
files changed
+15
additions
-8
deletions
| @@ -2,6 +2,12 @@ | |
| 2 2 | |
| 3 3 | ## Unreleased |
| 4 4 | |
| 5 | + ## v0.4.1 |
| 6 | + |
| 7 | + ### `Combo.Proxy` |
| 8 | + |
| 9 | + - fix the default value of `:adapter` option |
| 10 | + |
| 5 11 | ## v0.4.0 |
| 6 12 | |
| 7 13 | - add `Combo.Proxy` |
| @@ -1,9 +1,9 @@ | |
| 1 1 | {<<"links">>, |
| 2 2 | [{<<"Source">>,<<"https://github.com/combo-lab/combo">>}, |
| 3 3 | {<<"Changelog">>, |
| 4 | - <<"https://github.com/combo-lab/combo/blob/v0.4.0/CHANGELOG.md">>}]}. |
| 4 | + <<"https://github.com/combo-lab/combo/blob/v0.4.1/CHANGELOG.md">>}]}. |
| 5 5 | {<<"name">>,<<"combo">>}. |
| 6 | - {<<"version">>,<<"0.4.0">>}. |
| 6 | + {<<"version">>,<<"0.4.1">>}. |
| 7 7 | {<<"description">>, |
| 8 8 | <<"A web framework, that combines the good parts of modern web development.">>}. |
| 9 9 | {<<"elixir">>,<<"~> 1.18">>}. |
| @@ -72,7 +72,7 @@ defmodule Combo.Proxy do | |
| 72 72 | Default to `[]`. |
| 73 73 | * `:adapter` - the adapter for web server, `Combo.Proxy.Cowboy2Adapter` and |
| 74 74 | `Combo.Proxy.BanditAdapter` are available. |
| 75 | - Default to `Combo.Proxy.Cowboy2Adapter`. |
| 75 | + Default to `Combo.Proxy.BanditAdapter`. |
| 76 76 | * adapter options - all other options will be put into an keyword list and |
| 77 77 | passed as the options of the adapter. See following section for more details. |
| 78 78 | |
| @@ -211,7 +211,7 @@ defmodule Combo.Proxy do | |
| 211 211 | @impl true |
| 212 212 | def init(init_arg) do |
| 213 213 | {server, rest_arg} = Keyword.pop(init_arg, :server, false) |
| 214 | - {adapter, rest_arg} = Keyword.pop(rest_arg, :adapter, Plug.Cowboy) |
| 214 | + {adapter, rest_arg} = Keyword.pop(rest_arg, :adapter, Combo.Proxy.BanditAdapter) |
| 215 215 | {backends, rest_arg} = Keyword.pop(rest_arg, :backends, []) |
| 216 216 | |
| 217 217 | adapter_config = |
| @@ -1,7 +1,7 @@ | |
| 1 1 | defmodule Combo.MixProject do |
| 2 2 | use Mix.Project |
| 3 3 | |
| 4 | - @version "0.4.0" |
| 4 | + @version "0.4.1" |
| 5 5 | @description "A web framework, that combines the good parts of modern web development." |
| 6 6 | @elixir_requirement "~> 1.18" |
| 7 7 | @source_url "https://github.com/combo-lab/combo" |
| @@ -245,11 +245,12 @@ defmodule Combo.MixProject do | |
| 245 245 | "npm-packages.deps.get", |
| 246 246 | "assets.deps.get" |
| 247 247 | ], |
| 248 | - build: ["npm-packages.build", "assets.build", "compile"], |
| 248 | + build: ["npm-packages.sync-lock-file", "npm-packages.build", "assets.build", "compile"], |
| 249 249 | docs: ["docs", "npm-packages.docs"], |
| 250 250 | publish: ["hex.publish", "tag"], |
| 251 251 | tag: &tag_release/1, |
| 252 252 | "npm-packages.deps.get": "cmd --cd npm-packages/combo npm install", |
| 253 | + "npm-packages.sync-lock-file": "cmd --cd npm-packages/combo npm install", |
| 253 254 | "npm-packages.build": "cmd --cd npm-packages/combo npm run build", |
| 254 255 | "npm-packages.docs": "cmd --cd npm-packages/combo npm run docs", |
| 255 256 | "assets.deps.get": "cmd --cd assets npm install", |
| @@ -259,7 +260,7 @@ defmodule Combo.MixProject do | |
| 259 260 | |
| 260 261 | defp tag_release(_) do |
| 261 262 | Mix.shell().info("Tagging release as v#{@version}") |
| 262 | - System.cmd("git", ["tag", "v#{@version}"]) |
| 263 | + System.cmd("git", ["tag", "v#{@version}", "--message", "Release v#{@version}"]) |
| 263 264 | System.cmd("git", ["push", "--tags"]) |
| 264 265 | end |
| 265 266 | end |
| @@ -1,6 +1,6 @@ | |
| 1 1 | { |
| 2 2 | "name": "combo", |
| 3 | - "version": "0.4.0", |
| 3 | + "version": "0.4.1", |
| 4 4 | "description": "The JavaScript parts of Combo", |
| 5 5 | "type": "module", |
| 6 6 | "scripts": { |