Skip to content
This repository was archived by the owner on Jul 30, 2024. It is now read-only.

Commit fdfff43

Browse files
author
exoego
committed
Certificate class is not recommended to new
1 parent 7f74de3 commit fdfff43

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

app/current/src/main/scala/io/scalajs/nodejs/crypto/Certificate.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import scala.scalajs.js
66
import scala.scalajs.js.annotation.JSImport
77
import scala.scalajs.js.|
88

9+
@deprecated("Legacy API, not recommended to create new instance. Use Certificate object.", "v0.10.0")
910
@js.native
1011
@JSImport("crypto", "Certificate")
1112
class Certificate extends js.Object {

app/current/src/main/scala/io/scalajs/nodejs/crypto/Crypto.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ trait Crypto extends js.Object {
282282
@js.native
283283
@JSImport("crypto", JSImport.Namespace)
284284
object Crypto extends Crypto {
285+
@deprecated("Legacy API, not recommended to create new instance. Use Certificate object.", "v0.10.0")
285286
type Certificate = io.scalajs.nodejs.crypto.Certificate
286287
type Cipher = io.scalajs.nodejs.crypto.Cipher
287288
type Decipher = io.scalajs.nodejs.crypto.Decipher

0 commit comments

Comments
 (0)