CARVIEW |
Select Language
HTTP/2 200
date: Mon, 28 Jul 2025 03:25:24 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"ecae771d9633f50423bc71c5b2276027"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=Vj1u%2FF5W9bSsOmz9waounPwbuScxCpMptKVXZc9O%2FzypghWiIXnUch0xzN0vFCzFZ2sf2aCUdhSydBgtLgifWab2Fb2bhw%2Frn8tORnQvY%2BrdiR4HNwCMakId1SGRmMvKrYaSfRBoaAtwZKGeORoMRJz4BKjzvt8W336Fo2GLnM6KaxeXarT0GSt1mlrgOj08vYYknmWCTsmnZGIgC7SAVDgzzFutgng2NlLxYq59s93ylVRI6W5EssoRrZwxmkt6OBPmEKgoZjDFu5VZoIKwRQ%3D%3D--Dizd%2Bo4YzKHnuSfl--G5mDd8QyEYFp0MJN3SFKyg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.1193312862.1753673124; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 03:25:24 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Tue, 28 Jul 2026 03:25:24 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: ABCC:32A0BD:998938:CF495D:6886EDA4
Releases · meduzen/datetime-attribute · GitHub
21 Apr 21:54
Loading
21 Apr 21:41
Loading
18 Apr 21:53
Loading
23 Feb 21:45
Loading
05 Aug 21:57
Loading
10 Feb 10:26
Loading
10 Oct 00:24
Loading
09 Mar 23:04
Loading
01 Nov 10:59
Loading
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 1
Releases: meduzen/datetime-attribute
Releases · meduzen/datetime-attribute
1.4.0
Compare
Note
This version was published on NPM almost 6 months after the release tag was created on GitHub. Yes, I forgot.
New
- Add
setTzInRealWorldRange()
allowing to shift timezones to be inside the real-world (IANA) range. - Add
setTzConfig()
to set the timezone related configuration: pass it an object to set the timezone separator and enforce the IANA range at the same time.
Improved
- Improve multiple typing resolutions: previously, 1
.d.ts
file were generated per.js
file, preserving the initial folder structure. In both plain JavaScript and TypeScript environments, this was leading to quirks like:- types exported from subpath instead of root
- unexported functions being exported as types
Despite these, documented functions were properly exposed but global typing discoverability was a mess. See the comment in the related pull requests for more. This is now fixed by cleaning and combining all .d.ts
files into one thanks to dts-bundle-generator
.
Documentation
- Fix documentation examples for
tzOffset
. - Rephrase some parts.
Under the hood
- And add more tests for
tzOffset
in order to strenghten. This will be useful for the work around the standardizedTemporal
API. - Update ESLint config to group
import
statements by source. - Change TypeScript
target
toESNExt
. - Rename some internals.
- Remove test files from published package.
Assets 2
1.4.0-rc.0
Compare
This is a test release to see how typing resolution is working when installing the package from a remote registry.
Changes: see 1.4.0.
Assets 2
1.3.4
b9ef414
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare
Fixed
- Fix incorrect year for
datetime(date, 'week')
when the week started the previous year. For example,2021-01-01
is a Friday and its week belongs to 2020 (as per spec). In that case, the output was2021-W53
instead of2020-W53
.
Improved
- Improve type definitions where
?
andundefined
are redundant by removingundefined
:- for some signatures of optional parameters from
datetime(date?: Date | undefined
todatetime(date?: Date
- for some optional properties from
{ w?: number | undefined }
to{ w?: number }
- for some signatures of optional parameters from
Documentation
- Use brotli compression instead of gzip one to express the module size.
Under the hood
- Enforce type definitions for optional properties of the internal config functions
setConfig
andsetTzConfig
: it was possible to omit theirseparator
property, it’s not anymore. - Upgrade ESLint from 8 to 9 and lint tests using
eslint-plugin-vitest
. - Split test file and move tests closer to the code.
Assets 2
1.3.3
Compare
Fixed
- Fix
.js
file extension missing in animport
statement when trying toimport { datetime }
, which worked in some bundlers but could fail in others or when not using any bundler. This issue was introduced in version 1.3.0.
Documentation
- Fix typos.
Under the hood
- The NPM command to test types has been changed from
test-types
totest:types
. - Update tooling for Node 20.
- Configure the dependencies update automation to group them by categories.
- Monitor package size on pull request.
Assets 2
1.3.2
Compare
Improved
- Shorten
daysBetween()
andDateTime
footprint by a couple of bytes.
Warning
If not transpiled, DateTime
now requires support for class
fields (Safari 14.0).
Under the hood
- Replace NPM by pnpm.
Assets 2
1.3.2.-0
1.3.1
Compare
Fixed
- Typo (grammar) in types documentation.
Under the hood
- Add code of conduct, issue template, contributing guidelines, code analysis, dependabot, CodeQL.
- Replace Jest by Vitest.
Assets 2
1.3.0
50c24c3
This commit was created on GitHub.com and signed with GitHub’s verified signature.
The key has expired.
Compare
New
- Support years with more then 4 digits (
12345-01-01
). - Support years prior to year 1 (
-0051-01-01
). - Add
setTimeSeparator()
to customize the separator between date and time.
Fixed
- Missing zero-padding in front of years with less then 4 digits (
0537-01-01
).
Documentation
- Update links to bundles sizes.
Under the hood
- Update development dependencies.
- Update
package.json
description and keywords fields. - Update GitHub actions.
Assets 2
1.2.0
Compare
New
- Add
setTzSeparator()
to customize the hours-minutes separator of timezone offsets. - Add a Precision type for the
precision
parameter ofdatetime
,datetimeTz
andDateTime.to
, and a subset of this new type forutc
. It autocompletes the parameter (in modern code editors) with the available keywords.
Under the hood
- Improve types generation.
Assets 2
1.1.0
Compare
New
- Add a
DateTime()
class extending the nativeDate
object. Available methods:getWeek()
,setWeek()
andto()
.
Fixed
- Allow
datetimeTz()
without parameters. Before, the date was mandatory. - Improve types declaration.
Under the hood
- Add a NPM script to generate types.
- Update ESLint rules.
Assets 2
Previous Next
You can’t perform that action at this time.