Skip to content

Commit e4ac40f

Browse files
committed
updated docs, changelog and version
1 parent 25e9c21 commit e4ac40f

File tree

7 files changed

+24
-21
lines changed

7 files changed

+24
-21
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
44

5+
## [0.27.0](https://github.com/ArkForgeLabs/Astra/compare/v0.26.0..v0.27.0) - 2025-07-18
6+
7+
### Features
8+
9+
- [**breaking**] multiple of datetime creation methods was replaced by `Astra.datetime.new` - ([25e9c21](https://github.com/ArkForgeLabs/Astra/commit/25e9c21e86d5cdc8aa2bdfaa4e86aa7485b32a15))
10+
511
## [0.26.0](https://github.com/ArkForgeLabs/Astra/compare/v0.25.1..v0.26.0) - 2025-07-17
612

713
### Bug Fixes

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "lua-astra"
3-
version = "0.26.0"
3+
version = "0.27.0"
44
authors = ["Elham Aryanpur <elhamaryanpur5@gmail.com>"]
55
description = "🔥 Blazingly Fast 🔥 web server runtime for Lua"
66
documentation = "https://astra.arkforge.net/docs/latest"

docs/docs/latest/print.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,9 +1396,7 @@ <h1 id="async-tasks"><a class="header" href="#async-tasks">Async Tasks</a></h1>
13961396
<h1 id="datetime"><a class="header" href="#datetime">DateTime</a></h1>
13971397
<p>Astra provides date &amp; time functionality as an extension to the standard library. It is loosely inspired by the <a href="https://www.w3schools.com/jsref/jsref_obj_date.asp">JavaScript Date</a> implementation.</p>
13981398
<pre><code class="language-lua">-- Returns a DateTime object which corresponds to the current date, time &amp; local offset from UTC.
1399-
local dt = Astra.datetime.new_now()
1400-
-- or for UTC
1401-
local dt = Astra.datetime.new_utc_now()
1399+
local dt = Astra.datetime.new()
14021400

14031401
-- Returns a DateTime object which corresponds to the provided date and/or time arguments &amp; local offset from UTC.
14041402
-- You can provide the following arguments:
@@ -1412,9 +1410,10 @@ <h1 id="datetime"><a class="header" href="#datetime">DateTime</a></h1>
14121410
--
14131411
-- Providing the year is mandatory.
14141412
-- The other values, if not provided, will default to the following in respective order: 1, 1, 0, 0, 0, 0
1415-
local dt = Astra.datetime.new_from(2001, 7, 8, 0, 24, 48, 241)
1416-
-- or for UTC
1417-
local dt = Astra.datetime.new_utc_from(2001, 7, 8, 0, 24, 48, 241)
1413+
local dt = Astra.datetime.new(2001, 7, 8, 0, 24, 48, 241)
1414+
1415+
-- Or parse a string
1416+
local dt = Astra.datetime.new("Tue, 1 Jul 2003 10:52:37 +0200")
14181417
</code></pre>
14191418
<p>Available methods:</p>
14201419
<ul>

docs/docs/latest/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/docs/latest/std/datetime.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,9 +229,7 @@ <h1 class="menu-title">ArkForge Astra</h1>
229229
<h1 id="datetime"><a class="header" href="#datetime">DateTime</a></h1>
230230
<p>Astra provides date &amp; time functionality as an extension to the standard library. It is loosely inspired by the <a href="https://www.w3schools.com/jsref/jsref_obj_date.asp">JavaScript Date</a> implementation.</p>
231231
<pre><code class="language-lua">-- Returns a DateTime object which corresponds to the current date, time &amp; local offset from UTC.
232-
local dt = Astra.datetime.new_now()
233-
-- or for UTC
234-
local dt = Astra.datetime.new_utc_now()
232+
local dt = Astra.datetime.new()
235233

236234
-- Returns a DateTime object which corresponds to the provided date and/or time arguments &amp; local offset from UTC.
237235
-- You can provide the following arguments:
@@ -245,9 +243,10 @@ <h1 id="datetime"><a class="header" href="#datetime">DateTime</a></h1>
245243
--
246244
-- Providing the year is mandatory.
247245
-- The other values, if not provided, will default to the following in respective order: 1, 1, 0, 0, 0, 0
248-
local dt = Astra.datetime.new_from(2001, 7, 8, 0, 24, 48, 241)
249-
-- or for UTC
250-
local dt = Astra.datetime.new_utc_from(2001, 7, 8, 0, 24, 48, 241)
246+
local dt = Astra.datetime.new(2001, 7, 8, 0, 24, 48, 241)
247+
248+
-- Or parse a string
249+
local dt = Astra.datetime.new("Tue, 1 Jul 2003 10:52:37 +0200")
251250
</code></pre>
252251
<p>Available methods:</p>
253252
<ul>

src/docs/latest/src/std/datetime.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ Astra provides date & time functionality as an extension to the standard library
44

55
```lua
66
-- Returns a DateTime object which corresponds to the current date, time & local offset from UTC.
7-
local dt = Astra.datetime.new_now()
8-
-- or for UTC
9-
local dt = Astra.datetime.new_utc_now()
7+
local dt = Astra.datetime.new()
108

119
-- Returns a DateTime object which corresponds to the provided date and/or time arguments & local offset from UTC.
1210
-- You can provide the following arguments:
@@ -20,9 +18,10 @@ local dt = Astra.datetime.new_utc_now()
2018
--
2119
-- Providing the year is mandatory.
2220
-- The other values, if not provided, will default to the following in respective order: 1, 1, 0, 0, 0, 0
23-
local dt = Astra.datetime.new_from(2001, 7, 8, 0, 24, 48, 241)
24-
-- or for UTC
25-
local dt = Astra.datetime.new_utc_from(2001, 7, 8, 0, 24, 48, 241)
21+
local dt = Astra.datetime.new(2001, 7, 8, 0, 24, 48, 241)
22+
23+
-- Or parse a string
24+
local dt = Astra.datetime.new("Tue, 1 Jul 2003 10:52:37 +0200")
2625
```
2726

2827
Available methods:

0 commit comments

Comments
 (0)