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

Commit e8052af

Browse files
authored
Merge pull request #72 from exoego/process
Overhaul process module
2 parents dec0f76 + b5d804a commit e8052af

File tree

14 files changed

+1234
-700
lines changed

14 files changed

+1234
-700
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ The following core Node.js modules (v8.7.0+) have been implemented:
3636
| [net](https://nodejs.org/api/net.html) | |
3737
| [os](https://nodejs.org/api/os.html) | :heavy_check_mark: |
3838
| [path](https://nodejs.org/api/path.html) | :heavy_check_mark: |
39-
| [process](https://nodejs.org/api/process.html) | |
39+
| [process](https://nodejs.org/api/process.html) | :heavy_check_mark: |
4040
| [querystring](https://nodejs.org/api/querystring.html) | :heavy_check_mark: |
4141
| [readline](https://nodejs.org/api/readline.html) | |
4242
| [repl](https://nodejs.org/api/repl.html) | |

app/current/src/main/scala/io/scalajs/nodejs/Global.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ trait Global extends js.Object {
7272

7373
def console: console_module.Console = js.native
7474

75-
def process: Process = js.native
75+
def process: io.scalajs.nodejs.process.Process = js.native
7676

7777
def ref: Ref = js.native
7878

app/current/src/main/scala/io/scalajs/nodejs/Process.scala

Lines changed: 0 additions & 640 deletions
This file was deleted.

app/current/src/main/scala/io/scalajs/nodejs/package.scala

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ package object nodejs {
1818
// Type Definitions
1919
/////////////////////////////////////////////////////////////////////////////////
2020

21-
type Environment = js.Dictionary[String]
21+
@deprecated("use process.Process instead", "0.9.0")
22+
type Process = process.Process
23+
24+
@deprecated("use process.Environment instead", "0.9.0")
25+
type Environment = process.Environment
2226

2327
type EventType = String
2428

@@ -87,13 +91,6 @@ package object nodejs {
8791
@JSGlobal("global")
8892
object global extends Global
8993

90-
/**
91-
* The process object. See the process object section.
92-
*/
93-
@js.native
94-
@JSGlobal("process")
95-
object process extends Process
96-
9794
/////////////////////////////////////////////////////////////////////////////////
9895
// Timers
9996
/////////////////////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)