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

crypto.Certificate class is not recommended to be newed #183

Merged
merged 1 commit into from
Feb 23, 2020
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
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import scala.scalajs.js
import scala.scalajs.js.annotation.JSImport
import scala.scalajs.js.|

@deprecated("Legacy API, not recommended to create new instance. Use Certificate object.", "v0.10.0")
@js.native
@JSImport("crypto", "Certificate")
class Certificate extends js.Object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ trait Crypto extends js.Object {
@js.native
@JSImport("crypto", JSImport.Namespace)
object Crypto extends Crypto {
@deprecated("Legacy API, not recommended to create new instance. Use Certificate object.", "v0.10.0")
type Certificate = io.scalajs.nodejs.crypto.Certificate
type Cipher = io.scalajs.nodejs.crypto.Cipher
type Decipher = io.scalajs.nodejs.crypto.Decipher
Expand Down