Skip to content

Commit

Permalink
Merge pull request #141 from Flipez/release-0-19-1
Browse files Browse the repository at this point in the history
Release 0.19.1
  • Loading branch information
Flipez authored Oct 31, 2022
2 parents 09ad066 + 3643c59 commit 40839b4
Show file tree
Hide file tree
Showing 36 changed files with 2,070 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [v0.19.1](https://github.com/flipez/rocket-lang/tree/v0.19.1) (2022-10-31)

[Full Changelog](https://github.com/flipez/rocket-lang/compare/v0.19.0...v0.19.1)

**Implemented enhancements:**

- \[stdlib/time\] Add support for `Time.format()` and `Time.parse()` [\#140](https://github.com/Flipez/rocket-lang/pull/140) ([Flipez](https://github.com/Flipez))
- \[object/string\] Add support for `.format()` [\#139](https://github.com/Flipez/rocket-lang/pull/139) ([Flipez](https://github.com/Flipez))
- \[object/array\] Add ability to `.reverse()` [\#138](https://github.com/Flipez/rocket-lang/pull/138) ([Flipez](https://github.com/Flipez))
- \[object/array\] Add ability to `.sort()` [\#137](https://github.com/Flipez/rocket-lang/pull/137) ([Flipez](https://github.com/Flipez))

## [v0.19.0](https://github.com/flipez/rocket-lang/tree/v0.19.0) (2022-10-30)

[Full Changelog](https://github.com/flipez/rocket-lang/compare/v0.18.0...v0.19.0)
Expand Down
2 changes: 1 addition & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const config = {
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/flipez/rocket-lang/tree/main/docs/',
lastVersion: 'v0.19.0',
lastVersion: 'v0.19.1',
},
theme: {
customCss: require.resolve('./src/css/custom.css'),
Expand Down
18 changes: 18 additions & 0 deletions docs/versioned_docs/version-v0.19.1/builtins/HTTP.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# HTTP




## Module Function

### new()
> Returns `HTTP`
Creates a new instance of HTTP




## Properties
| Name | Value |
| ---- | ----- |
23 changes: 23 additions & 0 deletions docs/versioned_docs/version-v0.19.1/builtins/IO.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# IO




## Module Function

### open(STRING, STRING, STRING)
> Returns `FILE`
Opens a file pointer to the file at the path, mode and permission can be set optionally.


```js
🚀 > IO.open("main.go", "r", "0644")
=> <file:main.go>
```



## Properties
| Name | Value |
| ---- | ----- |
25 changes: 25 additions & 0 deletions docs/versioned_docs/version-v0.19.1/builtins/JSON.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# JSON




## Module Function

### parse(STRING)
> Returns `HASH`
Takes a STRING and parses it to a HASH or ARRAY. Numbers are always FLOAT.


```js
🚀 > JSON.parse('{"test": 123}')
=> {"test": 123.0}
🚀 > JSON.parse('["test", 123]')
=> ["test", 123.0]
```



## Properties
| Name | Value |
| ---- | ----- |
269 changes: 269 additions & 0 deletions docs/versioned_docs/version-v0.19.1/builtins/Math.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
# Math




## Module Function

### abs(FLOAT)
> Returns `FLOAT`




### acos(FLOAT)
> Returns `FLOAT`
Returns the arccosine, in radians, of the argument


```js
🚀 > Math.acos(1.0)
=> 0.0
```


### asin(FLOAT)
> Returns `FLOAT`
Returns the arcsine, in radians, of the argument


```js
🚀 > Math.asin(0.0)
=> 0.0
```


### atan(FLOAT)
> Returns `FLOAT`
Returns the arctangent, in radians, of the argument


```js
🚀 > Math.atan(0.0)
=> 0.0
```


### ceil(FLOAT)
> Returns `FLOAT`
Returns the least integer value greater or equal to the argument


```js
🚀 > Math.ceil(1.49)
=> 2.0
```


### copysign(FLOAT, FLOAT)
> Returns `FLOAT`
Returns a value with the magnitude of first argument and sign of second argument


```js
🚀 > Math.copysign(3.2, -1.0)
=> -3.2
```


### cos(FLOAT)
> Returns `FLOAT`
Returns the cosine of the radion argument


```js
🚀 > Math.cos(Pi/2)
=> 0.0
```


### exp(FLOAT)
> Returns `FLOAT`
Returns e**argument, the base-e exponential of argument


```js
🚀 > Math.exp(1.0)
=> 2.72
```


### floor(FLOAT)
> Returns `FLOAT`
Returns the greatest integer value less than or equal to argument


```js
🚀 > Math.floor(1.51)
=> 1.0
```


### log(FLOAT)
> Returns `FLOAT`
Returns the natural logarithm of argument


```js
🚀 > Math.log(2.7183)
=> 1.0
```


### log10(FLOAT)
> Returns `FLOAT`
Returns the decimal logarithm of argument


```js
🚀 > Math.log(100.0)
=> 2.0
```


### log2(FLOAT)
> Returns `FLOAT`
Returns the binary logarithm of argument


```js
🚀 > Math.log2(256.0)
=> 8.0
```


### max(FLOAT, FLOAT)
> Returns `FLOAT`
Returns the larger of the two numbers


```js
🚀 > Math.max(5.0, 10.0)
=> 10.0
```


### min(FLOAT, FLOAT)
> Returns `FLOAT`
Returns the smaller of the two numbers


```js
🚀 > Math.min(5.0, 10.0)
=> 5.0
```


### pow(FLOAT, FLOAT)
> Returns `FLOAT`
Returns argument1**argument2, the base-argument1 exponential of argument2


```js
🚀 > Math.pow(2.0, 3.0)
=> 8.0
```


### rand()
> Returns `FLOAT`
Returns a pseudo-random number in the half-open interval [0.0, 1.0].


```js
🚀 > Math.rand()
=> 0.6046602879796196
```


### remainder(FLOAT, FLOAT)
> Returns `FLOAT`
Returns the IEEE 754 floating-point remainder of argument1/argument2


```js
🚀 > Math.remainder(100.0, 30.0)
=> 10.0
```


### round(FLOAT)
> Returns `FLOAT`
Returns the nearest integer, rounding half away from zero


```js
🚀 > Math.round(73.3)
=> 73.0
```


### sin(FLOAT)
> Returns `FLOAT`
Returns the sine of the radion argument


```js
🚀 > Math.sin(Pi)
=> 0.0
```


### sqrt(FLOAT)
> Returns `FLOAT`
Returns the square root of argument


```js
🚀 > Math.sqrt(3.0 * 3.0 + 4.0 * 4.0)
=> 5.0
```


### tan(FLOAT)
> Returns `FLOAT`
Returns the tangent of the radion argument


```js
🚀 > Math.tan(0.0)
=> 0.0
```



## Properties
| Name | Value |
| ---- | ----- |
| E | 2.718281828459045 |
| Ln10 | 2.302585092994046 |
| Ln2 | 0.6931471805599453 |
| Log10E | 0.4342944819032518 |
| Log2E | 1.4426950408889634 |
| Phi | 1.618033988749895 |
| Pi | 3.141592653589793 |
| Sqrt2 | 1.4142135623730951 |
| SqrtE | 1.6487212707001282 |
| SqrtPhi | 1.272019649514069 |
| SqrtPi | 1.772453850905516 |
Loading

2 comments on commit 40839b4

@vercel
Copy link

@vercel vercel bot commented on 40839b4 Oct 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on 40839b4 Oct 31, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.