diff --git a/README.md b/README.md index e9ff72d..da72974 100644 --- a/README.md +++ b/README.md @@ -60,6 +60,7 @@ Also compares versions lexicographically. "", "ANYOS", "posix_2017", + "posix_2024", "aix", "android", "darwin", diff --git a/triplet.js b/triplet.js index 3c0270d..9481225 100644 --- a/triplet.js +++ b/triplet.js @@ -195,7 +195,8 @@ var Triplet = ('object' === typeof module && exports) || {}; SOLARIS: { os: 'solaris' }, // Any - POSIX: { os: 'posix_2017', arch: 'ANYARCH', vendor: 'unknown' }, + POSIX_2017: { os: 'posix_2017', arch: 'ANYARCH', vendor: 'unknown' }, + POSIX_2024: { os: 'posix_2024', arch: 'ANYARCH', vendor: 'unknown' }, WASI: { os: 'wasi', vendor: 'unknown' }, // Arches @@ -269,8 +270,9 @@ var Triplet = ('object' === typeof module && exports) || {}; tpm['solaris'] = T.SOLARIS; tpm['solaris_11'] = T.SOLARIS; // System Interfaces (POSIX, WASI) - tpm['posix'] = T.POSIX; - tpm['posix_2017'] = T.POSIX; + tpm['posix'] = T.POSIX_2017; + tpm['posix_2017'] = T.POSIX_2017; + tpm['posix_2024'] = T.POSIX_2024; tpm['wasi'] = T.WASI; // OS + Arch diff --git a/types.js b/types.js index 207fdda..be81057 100644 --- a/types.js +++ b/types.js @@ -3,7 +3,7 @@ module.exports._types = true; /** - * @typedef {""|"ANYOS"|"posix_2017"|"aix"|"android"|"darwin"|"dragonfly"|"freebsd"|"illumos"|"linux"|"netbsd"|"openbsd"|"plan9"|"solaris"|"sunos"|"wasi"|"windows"} OsString + * @typedef {""|"ANYOS"|"posix_2024"|"posix_2017"|"aix"|"android"|"darwin"|"dragonfly"|"freebsd"|"illumos"|"linux"|"netbsd"|"openbsd"|"plan9"|"solaris"|"sunos"|"wasi"|"windows"} OsString */ /**