You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e7d50e1
Browse filesBrowse the repository at this point in the historyBrowse files
[scheduler] Support the days of Date in the BaseTemporal copy
The copy follows the Base UI version, which supports the days of `Date`, from
-271821-04-20 to +275760-09-13, like Temporal, instead of the years 0 to 9999.
It also brings the `with()` checks of the Base UI version.
The tests of the last day the recurring series support move to
September 13th, 275760. The reworded errors keep their codes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/public/static/error-codes.json
+7-5Lines changed: 7 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -314,17 +314,17 @@
314
314
"314": "Base UI Plus: `BaseTemporal.%s` received %s, which isn't an object of date fields. `with()` replaces the date fields of an object, and keeps the calendar of the date, so it rejects temporal values and objects with a calendar or a time zone. Pass the fields to replace, such as `{ day: 1 }`, and call `withCalendar()` to change the calendar.",
315
315
"315": "Base UI Plus: `BaseTemporal.%s` received no date field the calendar of the date reads. `with()` can't tell which fields to replace. Pass at least one of `year`, `month`, `monthCode` and `day`, or `era` and `eraYear` outside the ISO calendar.",
316
316
"316": "Base UI Plus: A calendar received %s where it expects a `PlainDate`. The calendar reads the year, the month and the day of each date, so it can't use this one. Create dates with `BaseTemporal.PlainDate.from()`. A Server Component sends a `PlainDate` to the client as its string: pass that string to `from()` in a Client Component.",
317
-
"317": "Base UI Plus: `BaseTemporal.PlainDate.from()` received %s, which isn't an existing date in the `YYYY-MM-DD` format. Other ISO 8601 forms, such as times, offsets, time zone annotations or 6-digit years, are not supported. Pass a date such as `'2024-05-24'`, optionally followed by a calendar annotation such as `'[u-ca=hebrew]'`.",
317
+
"317": "Base UI Plus: `BaseTemporal.PlainDate.from()` received %s, which isn't an existing date in the `YYYY-MM-DD` or `±YYYYYY-MM-DD` format. Other ISO 8601 forms, such as times, offsets or time zone annotations, are not supported. Pass a date such as `'2024-05-24'`, optionally followed by a calendar annotation such as `'[u-ca=hebrew]'`.",
318
318
"318": "Base UI Plus: `BaseTemporal.PlainDate.from()` received %s, which isn't a date. `from()` can't read a year, a month and a day from it. Pass a `PlainDate`, an object such as `{ year: 2024, month: 5, day: 24 }`, or a string such as `'2024-05-24'`.",
319
319
"319": "Base UI Plus: `BaseTemporal.%s` received date fields that %s. The fields don't name a single date of the calendar. Pass a year (or an era and a year of era), a month (or a month code) and a day that exist in the calendar.",
320
320
"320": "Base UI Plus: `BaseTemporal.%s` received an object without %s. A date can't be built without its year, month and day. Pass an object such as `{ year: 2024, month: 5, day: 24 }`, with an era and a year of era together in place of the year if needed.",
321
-
"321": "Base UI Plus: `PlainDate` received the year %s, the month %s and the day %s, which don't name a supported date. The year must be from 0 to 9999, the month from 1 to 12, and the day must exist in the month. Pass a valid date, or create it with `BaseTemporal.PlainDate.from()` and an object to move a month or a day above its range to the closest valid value.",
321
+
"321": "Base UI Plus: `PlainDate` received the year %s, the month %s and the day %s, which don't name a supported date. The month must be from 1 to 12, the day must exist in the month, and the date must be from -271821-04-20 to +275760-09-13, the days of `Date`. Pass a valid date, or create it with `BaseTemporal.PlainDate.from()` and an object to move a month or a day above its range to the closest valid value.",
322
322
"322": "Base UI Plus: A temporal value received %s as its calendar, which isn't a string. Calendars are identified by their name. Pass a calendar identifier such as `'iso8601'`, `'gregory'` or `'hebrew'`.",
323
323
"323": "Base UI Plus: The \"%s\" calendar isn't supported. Base UI Plus has no arithmetic for it, so it cannot create or display its dates. Use `iso8601`, `gregory`, or one of the calendars listed in the documentation.",
324
324
"324": "Base UI Plus: The \"%s\" calendar isn't registered. Only the ISO and Gregorian calendars are built in, so other calendars stay out of the bundles that don't use them. Pass `%sCalendar` to `registerCalendar()`, both from `@base-ui/plus/calendar-systems`, before creating or displaying its dates.",
325
325
"325": "Base UI Plus: `registerCalendar()` received %s, which isn't a calendar of `@base-ui/plus/calendar-systems`. Base UI Plus only registers the calendars it implements. Pass a calendar such as `hebrewCalendar` from `'@base-ui/plus/calendar-systems'`.",
326
326
"326": "Base UI Plus: `registerCalendar()` received a second implementation of the \"%s\" calendar. Two implementations could give different dates for the same values, so the first registration stays. Make sure a single copy of `@base-ui/plus` is installed, and register each calendar once.",
327
-
"327": "Base UI Plus: A date of the \"%s\" calendar is outside the days it supports, from the ISO date %s-%s-%s to %s-%s-%s. Outside these days, `Intl.DateTimeFormat` doesn't label dates as Base UI Plus computes them, or the ISO year is outside 0 to 9999. Use a date inside the range.",
327
+
"327": "Base UI Plus: A date of the \"%s\" calendar is outside the days it supports, from the ISO date %s-%s-%s to %s-%s-%s. Outside these days, `Intl.DateTimeFormat` doesn't label dates as Base UI Plus computes them, or `Date` can't represent them. Use a date inside the range.",
328
328
"328": "Base UI Plus: A temporal value received %s as the %s, which isn't a finite number. A temporal value cannot represent a non-finite field. Pass finite numbers for its date and time fields.",
329
329
"329": "Base UI Plus: The options of `BaseTemporal.%s` are %s, which isn't an object. The method can't read the `overflow` option from them. Pass an object such as `{ overflow: 'reject' }`, or no options.",
330
330
"330": "Base UI Plus: The `overflow` option of `BaseTemporal.%s` is %s, which isn't supported. The method can't tell whether to adjust or reject a field above its range. Pass `'constrain'` or `'reject'`.",
@@ -333,6 +333,8 @@
333
333
"333": "Base UI Plus: The time string has an unsupported format. Its clock fields cannot be read. Use HH:mm or HH:mm:ss with up to nine fractional digits.",
334
334
"334": "Base UI Plus: The time has no clock fields. A clock time cannot be created. Pass a string such as '09:30' or an object such as { hour: 9, minute: 30 }.",
335
335
"335": "Base UI Plus: The %s of the time is out of range. The clock time cannot be created. Pass an integer between 0 and %s.",
336
-
"336": "Base UI Plus: The zoned date-time is outside the supported years. Fields cannot display it. Use a date-time between years 0 and 9999.",
337
-
"337": "Base UI Plus: The zoned date-time could not be created or changed. Its date, clock time, offset or timezone could not be resolved: %s. Pass a valid ISO date-time and timezone, and choose a disambiguation policy for skipped or repeated clock times."
336
+
"336": "Base UI Plus: The zoned date-time is outside the supported range. Like in Temporal, its instant must be one of the instants of `Date`, and its date must be from -271821-04-20 to +275760-09-13. Use a date-time inside this range.",
337
+
"337": "Base UI Plus: The zoned date-time could not be created or changed. Its date, clock time, offset or timezone could not be resolved: %s. Pass a valid ISO date-time and timezone, and choose a disambiguation policy for skipped or repeated clock times.",
338
+
"338": "Base UI Plus: `BaseTemporal.%s` received %s, which isn't an object of fields. `with()` replaces the fields of an object, and keeps the calendar of the value, so it rejects temporal values and objects with a calendar or a time zone. Pass only the fields to replace, such as `{ day: 1 }` for a date or `{ hour: 9 }` for a time.",
339
+
"339": "Base UI Plus: `BaseTemporal.%s` received no field the value reads. `with()` can't tell which fields to replace. Pass at least one field of the value, such as `{ day: 1 }` for a date or `{ hour: 9 }` for a time. Only calendars with eras, unlike the ISO calendar, read `era` and `eraYear`."
`Base UI Plus: \`BaseTemporal.${apiName}\` received ${String(fields)}, which isn't an object of date fields. `+
500
-
'`with()` replaces the date fields of an object, and keeps the calendar of the date, so it rejects temporal values and objects with a calendar or a time zone. '+
501
-
'Pass the fields to replace, such as `{ day: 1 }`, and call `withCalendar()` to change the calendar.',
502
-
);
503
-
}
504
-
// Like Temporal, a calendar without eras ignores the era fields.
`Base UI Plus: \`BaseTemporal.PlainDate.from()\` received ${JSON.stringify(item)}, which isn't an existing date in the \`YYYY-MM-DD\` format. `+
615
-
'Other ISO 8601 forms, such as times, offsets, time zone annotations or 6-digit years, are not supported. '+
593
+
`Base UI Plus: \`BaseTemporal.PlainDate.from()\` received ${JSON.stringify(item)}, which isn't an existing date in the \`YYYY-MM-DD\` or \`±YYYYYY-MM-DD\` format. `+
594
+
'Other ISO 8601 forms, such as times, offsets or time zone annotations, are not supported. '+
616
595
"Pass a date such as `'2024-05-24'`, optionally followed by a calendar annotation such as `'[u-ca=hebrew]'`.",
0 commit comments