Skip to content

Commit d2e3d3d

Browse files
committed
Deprecate Bare.simulator
It's now unused throughout our modules as `Bare.Addon.host` is favored.
1 parent 2af9cd1 commit d2e3d3d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,6 @@ The identifier of the operating system for which Bare was compiled. The possible
5656

5757
The identifier of the processor architecture for which Bare was compiled. The possible values are `arm`, `arm64`, `ia32`, `mips`, `mipsel`, and `x64`.
5858

59-
#### `Bare.simulator`
60-
61-
Whether or not Bare was compiled for a simulator.
62-
6359
#### `Bare.argv`
6460

6561
The command line arguments passed to the process when launched.

npm/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ interface BareEvents extends EventMap {
2323
interface Bare extends EventEmitter<BareEvents> {
2424
readonly platform: 'android' | 'darwin' | 'ios' | 'linux' | 'win32'
2525
readonly arch: 'arm' | 'arm64' | 'ia32' | 'x64' | 'mips' | 'mipsel'
26+
/** @deprecated */
2627
readonly simulator: boolean
2728
readonly argv: string[]
2829
readonly pid: number

src/bare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class Bare extends EventEmitter {
4141
return bare.arch
4242
}
4343

44+
/** @deprecated */
4445
get simulator() {
4546
return bare.simulator
4647
}
@@ -106,7 +107,6 @@ class Bare extends EventEmitter {
106107

107108
platform: this.platform,
108109
arch: this.arch,
109-
simulator: this.simulator,
110110
argv: this.argv,
111111
pid: this.pid,
112112
exitCode: this.exitCode,

0 commit comments

Comments
 (0)