Skip to content
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
24 changes: 0 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,6 @@ This class is a safer way to handle errors.

This class is a handy way to handle async processes.

### [error](https://github.com/nightcycle/error)

This class is a handy way to bundle up error context to allow for better handling in code + easier debugging.

### [vec](https://github.com/nightcycle/vec)

This class is a safer way to work with lists / arrays.

### [hash-map](https://github.com/nightcycle/hash-map)

This class is a safer way to work with dictionaries.

### [vec-deque](https://github.com/nightcycle/vec-deque)

This class is a safer way to work with queues.

### [serde-json](https://github.com/nightcycle/serde-json)

This library is a safer way to work with customized json serialization / deserialization into custom classes.

### [reqwest (pre-release)](https://github.com/nightcycle/reqwest)

This library is a safer way to work with http requests.

## contributing

Please contribute bug reports on the respective repository, for the most part though I'm not looking to add new APIs until Roblox's type engine gets more efficient - already with this minimal coverage things are getting pretty slow. Thank you!
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,14 @@
"prepare": "npmluau"
},
"dependencies": {
"@nightcycle/option": "^0",
"@nightcycle/result": "^0",
"@nightcycle/future": "^0",
"@nightcycle/hash-map": "^0",
"@nightcycle/vec": "^0",
"@nightcycle/vec-deque": "^0",
"@nightcycle/error": "^0",
"@nightcycle/reqwest": "^0",
"@nightcycle/serde-json": "^0"
"@nightcycle/option": "^1",
"@nightcycle/result": "^1",
"@nightcycle/future": "^1"
},
"devDependencies": {
"npmluau": "^0.1.1"
},
"keywords": [
"luau"
]
}
}
62 changes: 0 additions & 62 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -2,75 +2,13 @@
local Option = require("@pkg/@nightcycle/option")
local Result = require("@pkg/@nightcycle/result")
local Future = require("@pkg/@nightcycle/future")
local Error = require("@pkg/@nightcycle/error")
local Vec = require("@pkg/@nightcycle/vec")
local HashMap = require("@pkg/@nightcycle/hash-map")
local VecDeque = require("@pkg/@nightcycle/vec-deque")
local SerdeJson = require("@pkg/@nightcycle/serde-json")
local Reqwest = require("@pkg/@nightcycle/reqwest")

export type Option<T> = Option.Option<T>
export type Result<T, E> = Result.Result<T, E>
export type Future<T> = Future.Future<T>
export type Error<T, Body> = Error.Error<T, Body>
export type Vec<T> = Vec.Vec<T>
export type MutVec<T> = Vec.MutVec<T>
export type HashMap<K, V> = HashMap.HashMap<K, V>
export type MutHashMap<K, V> = HashMap.MutHashMap<K, V>
export type VecDeque<T> = VecDeque.VecDeque<T>
export type Ser = SerdeJson.Ser
export type Deser = SerdeJson.Deser
export type JsonValue = SerdeJson.JsonValue
export type Value = SerdeJson.Value
export type AxesJson = SerdeJson.AxesJson
export type BoolJson = SerdeJson.BoolJson
export type BrickColorJson = SerdeJson.BrickColorJson
export type CFrameJson = SerdeJson.CFrameJson
export type Color3Json = SerdeJson.Color3Json
export type ColorSequenceJson = SerdeJson.ColorSequenceJson
export type EnumJson = SerdeJson.EnumJson
export type FacesJson = SerdeJson.FacesJson
export type Float32Json = SerdeJson.Float32Json
export type Float64Json = SerdeJson.Float64Json
export type FontJson = SerdeJson.FontJson
export type Int32Json = SerdeJson.Int32Json
export type Int64Json = SerdeJson.Int64Json
export type NumberRangeJson = SerdeJson.NumberRangeJson
export type NumberSequenceJson = SerdeJson.NumberSequenceJson
export type PhysicalPropertiesJson = SerdeJson.PhysicalPropertiesJson
export type RayJson = SerdeJson.RayJson
export type RectJson = SerdeJson.RectJson
export type StringJson = SerdeJson.StringJson
export type UDimJson = SerdeJson.UDimJson
export type UDim2Json = SerdeJson.UDim2Json
export type Vector2Json = SerdeJson.Vector2Json
export type Vector3Json = SerdeJson.Vector3Json
export type Region3Json = SerdeJson.Region3Json
export type InfJson = SerdeJson.InfJson
export type NaNJson = SerdeJson.NaNJson
export type OptionJson<V> = SerdeJson.OptionJson<V>
export type ResultJson<V, E> = SerdeJson.ResultJson<V, E>
export type AnyJson = SerdeJson.AnyJson
export type HeaderMap = Reqwest.HeaderMap
export type Body = Reqwest.Body
export type Json = Reqwest.Json
export type Request = Reqwest.Request
export type RequestBuilder = Reqwest.RequestBuilder
export type Method = Reqwest.Method
export type Response = Reqwest.Response
export type Client = Reqwest.Client
export type ClientBuilder = Reqwest.ClientBuilder
export type Url = Reqwest.Url
export type TryFromUrl = Reqwest.TryFromUrl

return table.freeze({
Option = Option,
Result = Result,
Future = Future,
Error = Error,
Vec = Vec,
HashMap = HashMap,
VecDeque = VecDeque,
SerdeJson = SerdeJson,
Reqwest = Reqwest,
})
12 changes: 3 additions & 9 deletions wally.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ registry = "https://github.com/upliftgames/wally-index"
exclude = ["Packages", ".vscode"]

[dependencies]
option = "nightcycle/option@^0"
result = "nightcycle/result@^0"
future = "nightcycle/future@^0"
error = "nightcycle/error@^0"
vec = "nightcycle/vec@^0"
vec-deque = "nightcycle/vec-deque@^0"
hash-map = "nightcycle/hash-map@^0"
reqwest = "nightcycle/reqwest@^0"
serde-json = "nightcycle/serde-json@^0"
option = "nightcycle/option@^1"
result = "nightcycle/result@^1"
future = "nightcycle/future@^1"