-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(interns.clj): remove interns.clj to deprecate custom defnk macro
BREAKING CHANGE: Removal of custom defnk macro may affect existing codebases that rely on this macro from interns.clj. Users should replace usages with equivalent core or third-party macros.
- Loading branch information
Showing
8 changed files
with
5 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
The most recent commit of the `main` branch. | ||
|
||
Template's Dockerfile image uses `babashka/babashka:1.3.187-SNAPSHOT` so the template might change unpredictably. We use SNAPSHOT version to be able to use `defnk`. Once Babashka 1.3.187 is released, will upgrade to `babashka/babashka:1.3.187`. | ||
Template's Dockerfile image uses `babashka/babashka:1.3.187-SNAPSHOT` so the template might change unpredictably. We use SNAPSHOT version to be able to use `defnk` from [plumbing](https://github.com/plumatic/plumbing). Once Babashka 1.3.187 is released, will upgrade to `babashka/babashka:1.3.187`. | ||
|
||
## Reporting a vulnerability | ||
Please send an email to [email protected]. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
(ns handler | ||
(:require view)) | ||
|
||
(defnk handler [body] | ||
(defn handler [{:keys [body]}] | ||
(view/render-page "My Page" body)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(ns handler) | ||
|
||
(defnk handler [body headers context] | ||
(defn handler [body headers context] | ||
[(keys body) (vals body) (:content-type headers) (:upstream-url context)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
(ns handler) | ||
|
||
(defnk handler [body] | ||
(defn handler [{:keys [body]}] | ||
[(keys body) (vals body)]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
(ns handler) | ||
|
||
(defnk handler [request-method uri] | ||
(defn handler [{:keys [request-method uri]}] | ||
(case [request-method uri] | ||
[:get "/"] "root" | ||
[:get "/foo"] "foo")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
{:paths ["." "function"] | ||
:deps {prismatic/plumbing {:mvn/version "0.6.0"}} | ||
:tasks {run-function index/-main | ||
test test.run-tests/-main | ||
merge-config merge-config/-main}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.