Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhinavOmprakash committed Feb 16, 2024
1 parent a1bf327 commit ca90a1d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file. This change

## Current

## [0.1.15] 2024-02-16
### FIXED
- Allow users to exclude clojurescript dependency from snitch.

## [0.1.14] 2023-06-05
### Added
- Recursively inject inline defs inside lambda functions.
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,23 @@ I recommend adding snitch to your `~/.lein/profiles.clj`.
An example file would be
```clojure
; profiles.clj
{:user {:dependencies [[org.clojars.abhinav/snitch "0.0.12"]]}}
{:user {:dependencies [[org.clojars.abhinav/snitch "0.1.15"]]}}

{:dev {:dependencies [[org.clojars.abhinav/snitch "0.0.12"]]}}
{:dev {:dependencies [[org.clojars.abhinav/snitch "0.1.15"]]}}
```
If you add it to your project's dev dependencies, you could add this line to your dev/user.clj
```
(require '[snitch.core :refer [defn* defmethod* *fn *let]])
```
requiring these macros once, will intern these macros inside clojure.core & cljs.core, so you don't have to import them in every namespace.

### Exclude clojurescript dependency in clojure only projects
If you are using snitch exclusively for your clojure project, you can exclude the clojurescript dependency from snitch (version 0.0.15 onwards).

```clojure
{:user {:dependencies [[org.clojars.abhinav/snitch "0.1.15" :exclusions [org.clojure/clojurescript]]]}}
```

## Overview
There are four macros `defn*`, `defmethod*` `*fn`, `*let`.
They are drop-in replacements for `defn`, `defmethod`, `fn`, and `let`.
Expand Down Expand Up @@ -191,7 +198,7 @@ you can add the dependency to `~/.shadow-cljs/config.edn`

```clojure
{:dependencies
[[org.clojars.abhinav/snitch "0.0.12"]]}
[[org.clojars.abhinav/snitch "0.1.15"]]}
```
The import for clojurescript looks different.

Expand Down
4 changes: 2 additions & 2 deletions project.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(defproject org.clojars.abhinav/snitch "0.1.14"
(defproject org.clojars.abhinav/snitch "0.1.15"
:description
"Snitch injects inline defs in your functions and multimethods.
This enables a repl-based, editor-agnostic, clojure and clojurescript debugging workflow.
It is inline-defs on steroids."
:url "https://github.com/AbhinavOmprakash/snitch"
:license {:name "EPL-2.0 OR GPL-2.0-or-later WITH Classpath-exception-2.0"
:url "https://www.eclipse.org/legal/epl-2.0/"}
:dependencies [[org.clojure/clojure "1.10.3"]
:dependencies [[org.clojure/clojure "1.11.1"]
[org.clojure/clojurescript "1.11.60"]]
:plugins [[lein-auto "0.1.3"]
[lein-cloverage "1.0.9"]
Expand Down

0 comments on commit ca90a1d

Please sign in to comment.