Skip to content

Copy namespaces into clj-commons and update primitive-math dependency #54

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

Merged
merged 5 commits into from
Apr 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
:username :env/clojars_username
:password :env/clojars_password
:sign-releases false}]]
:dependencies [[primitive-math "0.1.6"]
:dependencies [[org.clj-commons/primitive-math "1.0.0"]
[manifold "0.1.9"]]
:profiles {:dev {:dependencies [[org.clojure/clojure "1.10.3"]
[org.clojure/test.check "1.1.0"]
Expand Down
7 changes: 6 additions & 1 deletion src/byte_streams.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
(ns byte-streams
(ns
^{:deprecated true
:doc "DEPRECATED: moved to clj-commons.byte-streams"
:no-doc true
:superseded-by "clj-commons.byte-streams"}
byte-streams
(:refer-clojure :exclude [byte-array vector-of])
(:require
[manifold
Expand Down
1 change: 1 addition & 0 deletions src/byte_streams/ByteBufferInputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.io.IOException;
import java.nio.ByteBuffer;

@Deprecated
public class ByteBufferInputStream extends InputStream {

private ByteBuffer _buf;
Expand Down
1 change: 1 addition & 0 deletions src/byte_streams/InputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import java.io.IOException;

@Deprecated
public class InputStream extends java.io.InputStream {

public interface Streamable {
Expand Down
1 change: 1 addition & 0 deletions src/byte_streams/Utils.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package byte_streams;

@Deprecated
public class Utils {
public static byte[] byteArray(int length) {
return new byte[length];
Expand Down
7 changes: 6 additions & 1 deletion src/byte_streams/char_sequence.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
(ns byte-streams.char-sequence
(ns
^{:deprecated true
:doc "DEPRECATED: moved to clj-commons.byte-streams.char-sequence"
:no-doc true
:superseded-by "clj-commons.byte-streams.char-sequence"}
byte-streams.char-sequence
(:refer-clojure :exclude [flush])
(:import
[java.util.concurrent.locks
Expand Down
7 changes: 6 additions & 1 deletion src/byte_streams/graph.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
(ns byte-streams.graph
(ns
^{:deprecated true
:doc "DEPRECATED: moved to clj-commons.byte-streams.graph"
:no-doc true
:superseded-by "clj-commons.byte-streams.graph"}
byte-streams.graph
(:refer-clojure :exclude [type])
(:require
[manifold.stream :as s]
Expand Down
7 changes: 6 additions & 1 deletion src/byte_streams/protocols.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
(ns byte-streams.protocols
(ns
^{:deprecated true
:doc "DEPRECATED: moved to clj-commons.byte-streams.protocols"
:no-doc true
:superseded-by "clj-commons.byte-streams.protocols"}
byte-streams.protocols
(:require
[byte-streams.utils :refer [defprotocol+]])
(:import
Expand Down
7 changes: 6 additions & 1 deletion src/byte_streams/pushback_stream.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
(ns byte-streams.pushback-stream
(ns
^{:deprecated true
:doc "DEPRECATED: moved to clj-commons.byte-streams.pushback-stream"
:no-doc true
:superseded-by "clj-commons.byte-streams.pushback-stream"}
byte-streams.pushback-stream
(:refer-clojure :exclude [take])
(:require
[primitive-math :as p]
Expand Down
7 changes: 6 additions & 1 deletion src/byte_streams/utils.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
(ns byte-streams.utils)
(ns
^{:deprecated true
:doc "DEPRECATED: moved to clj-commons.byte-streams.utils"
:no-doc true
:superseded-by "clj-commons.byte-streams.utils"}
byte-streams.utils)

(defmacro defprotocol+ [name & body]
(when-not (resolve name)
Expand Down
Loading