@ai-devtools/dbspec-windows-x64 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/bin/dbspec/_internal/base_library.zip +0 -0
  2. package/bin/dbspec/_internal/dbspec.egg-info/PKG-INFO +1 -1
  3. package/bin/dbspec/_internal/dbspec.egg-info/SOURCES.txt +2 -0
  4. package/bin/dbspec/_internal/pyproject.toml +1 -1
  5. package/bin/dbspec/_internal/src/resources/sqlalchemy_templates/README.md +23 -0
  6. package/bin/dbspec/_internal/src/resources/sqlalchemy_templates/domain_init.py.j2 +3 -3
  7. package/bin/dbspec/_internal/src/resources/sqlalchemy_templates/model.py.j2 +50 -50
  8. package/bin/dbspec/_internal/src/resources/sqlalchemy_templates/package_init.py.j2 +4 -4
  9. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Araguaina +0 -0
  10. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Bahia +0 -0
  11. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Belem +0 -0
  12. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Boa_Vista +0 -0
  13. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Campo_Grande +0 -0
  14. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Cuiaba +0 -0
  15. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Eirunepe +0 -0
  16. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Fortaleza +0 -0
  17. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Havana +0 -0
  18. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Maceio +0 -0
  19. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Manaus +0 -0
  20. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Noronha +0 -0
  21. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Porto_Acre +0 -0
  22. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Porto_Velho +0 -0
  23. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Recife +0 -0
  24. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Rio_Branco +0 -0
  25. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Santarem +0 -0
  26. package/bin/dbspec/_internal/tzdata/zoneinfo/America/Sao_Paulo +0 -0
  27. package/bin/dbspec/_internal/tzdata/zoneinfo/Brazil/Acre +0 -0
  28. package/bin/dbspec/_internal/tzdata/zoneinfo/Brazil/DeNoronha +0 -0
  29. package/bin/dbspec/_internal/tzdata/zoneinfo/Brazil/East +0 -0
  30. package/bin/dbspec/_internal/tzdata/zoneinfo/Brazil/West +0 -0
  31. package/bin/dbspec/_internal/tzdata/zoneinfo/Cuba +0 -0
  32. package/bin/dbspec/_internal/tzdata/zoneinfo/leapseconds +11 -13
  33. package/bin/dbspec/_internal/tzdata/zoneinfo/tzdata.zi +12 -9
  34. package/bin/dbspec/dbspec.exe +0 -0
  35. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dbspec
3
- Version: 1.6.1
3
+ Version: 1.6.2
4
4
  Summary: DBSpec: CLI/TUI for database design (Excel as DSL)
5
5
  Requires-Python: >=3.11
6
6
  Description-Content-Type: text/markdown
@@ -40,6 +40,7 @@ src/db_import/types.py
40
40
  src/db_import/validation.py
41
41
  src/generators/__init__.py
42
42
  src/generators/sqlalchemy/__init__.py
43
+ src/generators/sqlalchemy/attribute_names.py
43
44
  src/generators/sqlalchemy/constraints.py
44
45
  src/generators/sqlalchemy/context.py
45
46
  src/generators/sqlalchemy/domains.py
@@ -54,6 +55,7 @@ src/generators/sqlalchemy/sequences.py
54
55
  src/generators/sqlalchemy/tables.py
55
56
  src/generators/sqlalchemy/templates.py
56
57
  src/generators/sqlalchemy/types.py
58
+ src/generators/sqlalchemy/validation.py
57
59
  src/logic/__init__.py
58
60
  src/logic/check_rules.py
59
61
  src/logic/db_validation.py
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "dbspec"
7
- version = "1.6.1"
7
+ version = "1.6.2"
8
8
  description = "DBSpec: CLI/TUI for database design (Excel as DSL)"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.11"
@@ -70,3 +70,26 @@ Jinja-параметров, зависящий только от стандар
70
70
  изолированным subprocess без site-packages.
71
71
 
72
72
  В 1.6.0 IndexContext содержит directions (ASC/DESC/пустая строка) в порядке columns и has_directions. Для направленных unique indexes используйте Index(unique=True), а не UniqueConstraint. Направления передаются методами SQLAlchemy .asc()/.desc(). Проектные шаблоны обновляются отдельно.
73
+
74
+ ## Безопасные Python-атрибуты (1.6.2)
75
+
76
+ `col.name` хранит исходное SQL-имя, `col.attr_name` — уникальный Python-атрибут.
77
+ При различии передавайте `col.name` первым аргументом `mapped_column`, как в штатном
78
+ шаблоне. Ключевые слова и служебные имена получают безопасные атрибуты; допустимые
79
+ `match`, `case`, `type` сохраняются. Коллизии распределяются детерминированно в общей
80
+ области колонок и связей, без изменения имён SQL-колонок или ограничений.
81
+
82
+ `rel.fk_columns` сохраняет прежний контракт: локальные имена FK-атрибутов для
83
+ дочерней связи и пустой список для обратной. Новое необязательное поле
84
+ `rel.fk_expression` содержит строку списка class-qualified ссылок
85
+ (`[Child.sender_id]`). Штатный шаблон передаёт её через `py_repr` в
86
+ `relationship.foreign_keys`, разрешая обе стороны после импорта моделей.
87
+ Прежние проектные шаблоны простых связей продолжают работать без обновления.
88
+
89
+ До замены результата генератор проверяет синтаксис всех Python-файлов, импорт,
90
+ настройку ORM, полноту колонок metadata и разрешение FK в отдельном процессе.
91
+ Это изоляция состояния Python, а не security sandbox пользовательского кода.
92
+ Внешний `base_import` должен импортироваться в окружении генерации; его существующие
93
+ таблицы допустимы, но состав каждой генерируемой таблицы должен совпасть с SSOT.
94
+ При ошибке прежний выходной каталог сохраняется. Установка приложения или соединение
95
+ с БД для штатных шаблонов не требуются.
@@ -1,4 +1,4 @@
1
- # Domain package: {{ domain.name }}
1
+ {{ ("Domain package: " ~ domain.name) | py_repr }}
2
2
 
3
3
  {% if model_mode == "core" %}
4
4
  {% for table in domain.tables %}
@@ -7,7 +7,7 @@ from .{{ table.module_name }} import {{ table.module_name }}
7
7
 
8
8
  __all__ = [
9
9
  {% for table in domain.tables %}
10
- "{{ table.module_name }}",
10
+ {{ table.module_name | py_string }},
11
11
  {% endfor %}
12
12
  ]
13
13
  {% else %}
@@ -23,7 +23,7 @@ from .{{ table.module_name }} import {{ table.export_name }}
23
23
 
24
24
  __all__ = [
25
25
  {% for table in domain.tables %}
26
- "{{ table.export_name }}",
26
+ {{ table.export_name | py_string }},
27
27
  {% endfor %}
28
28
  ]
29
29
  {% endif %}
@@ -1,4 +1,4 @@
1
- """{{ table.description if include_comments and table.description else table.class_name ~ " model." }}"""
1
+ {{ (table.description if include_comments and table.description else table.class_name ~ " model.") | py_repr }}
2
2
 
3
3
  from __future__ import annotations
4
4
 
@@ -32,11 +32,11 @@ from ..{{ common_dir_name }}.base import metadata
32
32
  {% for enum in table.enums %}
33
33
  {{ enum.var_name }} = ENUM(
34
34
  {% for v in enum.values %}
35
- "{{ v | replace('"', '\\"') }}"{% if not loop.last %}, {% endif +%}
35
+ {{ v | py_string }}{% if not loop.last %}, {% endif +%}
36
36
  {% endfor %}
37
37
  ,
38
- name="{{ enum.name }}",
39
- schema="{{ enum.schema }}",
38
+ name={{ enum.name | py_string }},
39
+ schema={{ enum.schema | py_string }},
40
40
  create_type={{ "True" if enum.create_type else "False" }},
41
41
  )
42
42
  {% endfor %}
@@ -45,24 +45,24 @@ from ..{{ common_dir_name }}.base import metadata
45
45
  {% if table.sequences %}
46
46
  {% for seq in table.sequences %}
47
47
  {{ seq.var_name }} = Sequence(
48
- "{{ seq.name }}",
48
+ {{ seq.name | py_string }},
49
49
  {% if seq.schema %}
50
- schema="{{ seq.schema }}",
50
+ schema={{ seq.schema | py_string }},
51
51
  {% endif %}
52
52
  )
53
53
  {% endfor %}
54
54
  {% endif %}
55
55
 
56
56
  {{ table.module_name }} = Table(
57
- "{{ table.table }}",
57
+ {{ table.table | py_string }},
58
58
  metadata,
59
59
  {% for col in table.columns %}
60
60
  Column(
61
- "{{ col.name }}",
61
+ {{ col.name | py_string }},
62
62
  {{ col.sa_type }},
63
63
  {% set col_args = [] -%}
64
64
  {% if col.fk_target -%}
65
- {% set _ = col_args.append('ForeignKey("' ~ col.fk_target ~ '")') -%}
65
+ {% set _ = col_args.append('ForeignKey(' ~ (col.fk_target | py_string) ~ ')') -%}
66
66
  {% endif -%}
67
67
  {% if col.sequence -%}
68
68
  {% set _ = col_args.append(col.sequence.var_name) -%}
@@ -81,7 +81,7 @@ from ..{{ common_dir_name }}.base import metadata
81
81
  {% if col.sequence -%}
82
82
  {% set _ = col_args.append('server_default=' ~ col.sequence.var_name ~ '.next_value()') -%}
83
83
  {% elif col.server_default -%}
84
- {% set _ = col_args.append('server_default=text("' ~ (col.server_default | replace('\"', '\\\"')) ~ '")') -%}
84
+ {% set _ = col_args.append('server_default=text(' ~ (col.server_default | py_string) ~ ')') -%}
85
85
  {% endif -%}
86
86
  {% if include_comments and col.description -%}
87
87
  {% set _ = col_args.append('comment=' ~ (col.description | py_repr)) -%}
@@ -94,9 +94,9 @@ from ..{{ common_dir_name }}.base import metadata
94
94
  {% if table.pk_constraint and table.pk_constraint.columns %}
95
95
  PrimaryKeyConstraint(
96
96
  {% for pk_col in table.pk_constraint.columns %}
97
- "{{ pk_col }}",
97
+ {{ pk_col | py_string }},
98
98
  {% endfor %}
99
- name="{{ table.pk_constraint.name }}",
99
+ name={{ table.pk_constraint.name | py_string }},
100
100
  ),
101
101
  {% endif %}
102
102
  {% for check in table.check_constraints %}
@@ -105,9 +105,9 @@ from ..{{ common_dir_name }}.base import metadata
105
105
  {% for constraint in table.unique_constraints %}
106
106
  UniqueConstraint(
107
107
  {% for c in constraint.columns %}
108
- "{{ c }}",
108
+ {{ c | py_string }},
109
109
  {% endfor %}
110
- name="{{ constraint.name }}",
110
+ name={{ constraint.name | py_string }},
111
111
  {% if constraint.nulls_not_distinct %}
112
112
  postgresql_nulls_not_distinct=True,
113
113
  {% endif %}
@@ -117,13 +117,13 @@ from ..{{ common_dir_name }}.base import metadata
117
117
  {% if idx.unique and not idx.where and not idx.has_directions %}
118
118
  UniqueConstraint(
119
119
  {% for c in idx.columns %}
120
- "{{ c }}",
120
+ {{ c | py_string }},
121
121
  {% endfor %}
122
- name="{{ idx.name }}",
122
+ name={{ idx.name | py_string }},
123
123
  ),
124
124
  {% endif %}
125
125
  {% endfor %}
126
- schema="{{ table.schema }}",
126
+ schema={{ table.schema | py_string }},
127
127
  {% if include_comments and table.description %}
128
128
  comment={{ table.description | py_repr }},
129
129
  {% endif %}
@@ -131,7 +131,7 @@ from ..{{ common_dir_name }}.base import metadata
131
131
  {% for idx in table.indexes %}
132
132
  {% if idx.where or not idx.unique or idx.has_directions %}
133
133
  Index(
134
- "{{ idx.name }}",
134
+ {{ idx.name | py_string }},
135
135
  {% for c in idx.columns %}
136
136
  {{ table.module_name }}.c[{{ c | py_repr }}]{% if idx.directions[loop.index0] %}.{{ idx.directions[loop.index0] | lower }}(){% endif %},
137
137
  {% endfor %}
@@ -139,7 +139,7 @@ Index(
139
139
  unique=True,
140
140
  {% endif %}
141
141
  {% if idx.where %}
142
- postgresql_where=text("{{ idx.where }}"),
142
+ postgresql_where=text({{ idx.where | py_string }}),
143
143
  {% endif %}
144
144
  )
145
145
  {% endif %}
@@ -186,11 +186,11 @@ if TYPE_CHECKING:
186
186
  {% for enum in table.enums %}
187
187
  {{ enum.var_name }} = ENUM(
188
188
  {% for v in enum.values %}
189
- "{{ v | replace('"', '\\"') }}"{% if not loop.last %}, {% endif +%}
189
+ {{ v | py_string }}{% if not loop.last %}, {% endif +%}
190
190
  {% endfor %}
191
191
  ,
192
- name="{{ enum.name }}",
193
- schema="{{ enum.schema }}",
192
+ name={{ enum.name | py_string }},
193
+ schema={{ enum.schema | py_string }},
194
194
  create_type={{ "True" if enum.create_type else "False" }},
195
195
  )
196
196
  {% endfor %}
@@ -199,9 +199,9 @@ if TYPE_CHECKING:
199
199
  {% if table.sequences %}
200
200
  {% for seq in table.sequences %}
201
201
  {{ seq.var_name }} = Sequence(
202
- "{{ seq.name }}",
202
+ {{ seq.name | py_string }},
203
203
  {% if seq.schema %}
204
- schema="{{ seq.schema }}",
204
+ schema={{ seq.schema | py_string }},
205
205
  {% endif %}
206
206
  )
207
207
  {% endfor %}
@@ -209,9 +209,9 @@ if TYPE_CHECKING:
209
209
 
210
210
 
211
211
  class {{ table.class_name }}({{ base_class }}):
212
- """{{ table.description if include_comments and table.description else table.class_name ~ " table." }}"""
212
+ {{ (table.description if include_comments and table.description else table.class_name ~ " table.") | py_repr }}
213
213
 
214
- __tablename__ = "{{ table.table }}" # type: ignore[assignment]
214
+ __tablename__ = {{ table.table | py_string }} # type: ignore[assignment]
215
215
 
216
216
  {% set has_table_level_args = (table.indexes and (table.indexes | length > 0)) or (table.unique_constraints and (table.unique_constraints | length > 0)) or (table.pk_constraint and table.pk_constraint.columns) or (table.check_constraints and (table.check_constraints | length > 0)) %}
217
217
  {% if has_table_level_args %}
@@ -219,9 +219,9 @@ class {{ table.class_name }}({{ base_class }}):
219
219
  {% if table.pk_constraint and table.pk_constraint.columns %}
220
220
  PrimaryKeyConstraint(
221
221
  {% for pk_col in table.pk_constraint.columns %}
222
- "{{ pk_col }}",
222
+ {{ pk_col | py_string }},
223
223
  {% endfor %}
224
- name="{{ table.pk_constraint.name }}",
224
+ name={{ table.pk_constraint.name | py_string }},
225
225
  ),
226
226
  {% endif %}
227
227
  {% for check in table.check_constraints %}
@@ -230,9 +230,9 @@ class {{ table.class_name }}({{ base_class }}):
230
230
  {% for constraint in table.unique_constraints %}
231
231
  UniqueConstraint(
232
232
  {% for c in constraint.columns %}
233
- "{{ c }}",
233
+ {{ c | py_string }},
234
234
  {% endfor %}
235
- name="{{ constraint.name }}",
235
+ name={{ constraint.name | py_string }},
236
236
  {% if constraint.nulls_not_distinct %}
237
237
  postgresql_nulls_not_distinct=True,
238
238
  {% endif %}
@@ -252,49 +252,49 @@ class {{ table.class_name }}({{ base_class }}):
252
252
  ),
253
253
  {% elif idx.where and idx.unique %}
254
254
  Index(
255
- "{{ idx.name }}",
255
+ {{ idx.name | py_string }},
256
256
  {% for c in idx.columns %}
257
- "{{ c }}",
257
+ {{ c | py_string }},
258
258
  {% endfor %}
259
259
  unique=True,
260
- postgresql_where=text("{{ idx.where }}"),
260
+ postgresql_where=text({{ idx.where | py_string }}),
261
261
  ),
262
262
  {% elif idx.where %}
263
263
  Index(
264
- "{{ idx.name }}",
264
+ {{ idx.name | py_string }},
265
265
  {% for c in idx.columns %}
266
- "{{ c }}",
266
+ {{ c | py_string }},
267
267
  {% endfor %}
268
- postgresql_where=text("{{ idx.where }}"),
268
+ postgresql_where=text({{ idx.where | py_string }}),
269
269
  ),
270
270
  {% elif idx.unique %}
271
271
  UniqueConstraint(
272
272
  {% for c in idx.columns %}
273
- "{{ c }}",
273
+ {{ c | py_string }},
274
274
  {% endfor %}
275
- name="{{ idx.name }}",
275
+ name={{ idx.name | py_string }},
276
276
  ),
277
277
  {% else %}
278
278
  Index(
279
- "{{ idx.name }}",
279
+ {{ idx.name | py_string }},
280
280
  {% for c in idx.columns %}
281
- "{{ c }}",
281
+ {{ c | py_string }},
282
282
  {% endfor %}
283
283
  ),
284
284
  {% endif %}
285
285
  {% endfor %}
286
286
  {
287
- "schema": "{{ table.schema }}",
287
+ "schema": {{ table.schema | py_string }},
288
288
  {% if include_comments and table.description %}
289
- "comment": "{{ table.description }}",
289
+ "comment": {{ table.description | py_string }},
290
290
  {% endif %}
291
291
  },
292
292
  )
293
293
  {% else %}
294
294
  __table_args__ = {
295
- "schema": "{{ table.schema }}",
295
+ "schema": {{ table.schema | py_string }},
296
296
  {% if include_comments and table.description %}
297
- "comment": "{{ table.description }}",
297
+ "comment": {{ table.description | py_string }},
298
298
  {% endif %}
299
299
  }
300
300
  {% endif %}
@@ -307,7 +307,7 @@ class {{ table.class_name }}({{ base_class }}):
307
307
  {{ col.sa_type }},
308
308
  {% set col_args = [] -%}
309
309
  {% if col.fk_target -%}
310
- {% set _ = col_args.append('ForeignKey("' ~ col.fk_target ~ '")') -%}
310
+ {% set _ = col_args.append('ForeignKey(' ~ (col.fk_target | py_string) ~ ')') -%}
311
311
  {% endif -%}
312
312
  {% if col.sequence -%}
313
313
  {% set _ = col_args.append(col.sequence.var_name) -%}
@@ -326,7 +326,7 @@ class {{ table.class_name }}({{ base_class }}):
326
326
  {% if col.sequence -%}
327
327
  {% set _ = col_args.append('server_default=' ~ col.sequence.var_name ~ '.next_value()') -%}
328
328
  {% elif col.server_default -%}
329
- {% set _ = col_args.append('server_default=text("' ~ (col.server_default | replace('\"', '\\\"')) ~ '")') -%}
329
+ {% set _ = col_args.append('server_default=text(' ~ (col.server_default | py_string) ~ ')') -%}
330
330
  {% endif -%}
331
331
  {% if include_comments and col.description -%}
332
332
  {% set _ = col_args.append('comment=' ~ (col.description | py_repr)) -%}
@@ -340,10 +340,10 @@ class {{ table.class_name }}({{ base_class }}):
340
340
  # Relationships
341
341
  {% for rel in table.relationships %}
342
342
  {{ rel.attr_name }}: Mapped[{{ rel.python_type }}] = relationship(
343
- "{{ rel.target_class }}",
344
- back_populates="{{ rel.back_populates }}",
345
- {% if rel.fk_columns %}
346
- foreign_keys=[{% for fk_col in rel.fk_columns %}{{ fk_col }}{% if not loop.last %}, {% endif %}{% endfor %}],
343
+ {{ rel.target_class | py_string }},
344
+ back_populates={{ rel.back_populates | py_string }},
345
+ {% if rel.fk_expression %}
346
+ foreign_keys={{ rel.fk_expression | py_repr }},
347
347
  {% endif %}
348
348
  )
349
349
  {% endfor %}
@@ -14,7 +14,7 @@ __all__ = [
14
14
  "metadata",
15
15
  {% for domain in domains %}
16
16
  {% for table in domain.tables %}
17
- "{{ table.module_name }}",
17
+ {{ table.module_name | py_string }},
18
18
  {% endfor %}
19
19
  {% endfor %}
20
20
  ]
@@ -41,14 +41,14 @@ from .{{ domain.module_name }}.{{ table.module_name }} import {{ table.export_na
41
41
  {% endfor %}
42
42
 
43
43
  __all__ = [
44
- "{{ base_class }}",
44
+ {{ base_class | py_string }},
45
45
  {% for domain in domains %}
46
46
  {% for table in domain.tables %}
47
- "{{ table.export_name }}",
47
+ {{ table.export_name | py_string }},
48
48
  {% endfor %}
49
49
  {% endfor %}
50
50
  ]
51
51
  {% else %}
52
- __all__ = ["{{ base_class }}"]
52
+ __all__ = [{{ base_class | py_string }}]
53
53
  {% endif %}
54
54
  {% endif %}
@@ -1,4 +1,4 @@
1
- # Allowance for leap seconds added to each time zone file.
1
+ # Leap seconds (1972-2016) optionally added to TZif files.
2
2
 
3
3
  # This file is in the public domain.
4
4
 
@@ -6,7 +6,7 @@
6
6
  # NIST/IERS format leap-seconds.list file, which can be copied from
7
7
  # <https://hpiers.obspm.fr/iers/bul/bulc/ntp/leap-seconds.list>
8
8
  # or via a less-secure protocol and with different comments and
9
- # less volatile last-modified and expiration timestamps, from
9
+ # less volatile timestamp metadata, from
10
10
  # <ftp://ftp.boulder.nist.gov/pub/time/leap-seconds.list>.
11
11
  # For more about leap-seconds.list, please see
12
12
  # The NTP Timescale and Leap Seconds
@@ -18,10 +18,8 @@
18
18
  # (ITU-R) Recommendation TF.460-6 (02/2002)
19
19
  # <https://www.itu.int/rec/R-REC-TF.460-6-200202-I/>.
20
20
  # The International Earth Rotation and Reference Systems Service (IERS)
21
- # periodically uses leap seconds to keep UTC to within 0.9 s of UT1
22
- # (a proxy for Earth's angle in space as measured by astronomers)
23
- # and publishes leap second data in a copyrighted file
24
- # <https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat>.
21
+ # periodically used leap seconds to keep UTC to within 0.9 s of UT1
22
+ # (a proxy for Earth's angle in space as measured by astronomers).
25
23
  # See: Levine J. Coordinated Universal Time and the leap second.
26
24
  # URSI Radio Sci Bull. 2016;89(4):30-6. doi:10.23919/URSIRSB.2016.7909995
27
25
  # <https://ieeexplore.ieee.org/document/7909995>.
@@ -33,8 +31,8 @@
33
31
  # of UTC.
34
32
 
35
33
  # All leap-seconds are Stationary (S) at the given UTC time.
36
- # The correction (+ or -) is made at the given time, so in the unlikely
37
- # event of a negative leap second, a line would look like this:
34
+ # The correction (+ or -) is made at the given time, so if a negative
35
+ # leap second had ever occurred, a line would have looked like this:
38
36
  # Leap YEAR MON DAY 23:59:59 - S
39
37
  # Typical lines look like this:
40
38
  # Leap YEAR MON DAY 23:59:60 + S
@@ -67,8 +65,9 @@ Leap 2015 Jun 30 23:59:60 + S
67
65
  Leap 2016 Dec 31 23:59:60 + S
68
66
 
69
67
  # UTC timestamp when this leap second list expires.
70
- # Any additional leap seconds will come after this.
71
- # This Expires line is commented out for now,
68
+ # The idea was that any additional leap seconds would come after this.
69
+ # This timestamp is obsolete as there will be no more leap seconds.
70
+ # This Expires line is commented out, to avoid confusion, and
72
71
  # so that pre-2020a zic implementations do not reject this file.
73
72
  #Expires 2027 Jun 28 00:00:00
74
73
 
@@ -76,10 +75,9 @@ Leap 2016 Dec 31 23:59:60 + S
76
75
  # "#updated" gives the last time the leap seconds data changed
77
76
  # or, if this file was derived from the IERS leap-seconds.list,
78
77
  # the last time that file changed in any way.
79
- # "#expires" gives the first time this file might be wrong;
80
- # if this file was derived from the IERS leap-seconds.list,
81
- # this is typically a bit less than one year after "updated".
82
78
  #updated 1783323897 (2026-07-06 07:44:57 UTC)
79
+ # "#expires" gives the first time this file might be wrong.
80
+ # This timestamp is obsolete as there will be no more leap seconds.
83
81
  #expires 1814140800 (2027-06-28 00:00:00 UTC)
84
82
 
85
83
  # Updated through IERS Bulletin C (https://hpiers.obspm.fr/iers/bul/bulc/bulletinc.dat)
@@ -1,4 +1,4 @@
1
- # version 2026e
1
+ # version 2026f
2
2
  # redo posix_only
3
3
  # This zic input file is in the public domain.
4
4
  R d 1916 o - Jun 14 23s 1 S
@@ -1700,8 +1700,10 @@ R Q 2009 2010 - Mar Su>=8 0s 1 D
1700
1700
  R Q 2011 o - Mar Su>=15 0s 1 D
1701
1701
  R Q 2011 o - N 13 0s 0 S
1702
1702
  R Q 2012 o - Ap 1 0s 1 D
1703
- R Q 2012 ma - N Su>=1 0s 0 S
1704
- R Q 2013 ma - Mar Su>=8 0s 1 D
1703
+ R Q 2012 2025 - N Su>=1 0s 0 S
1704
+ R Q 2013 2026 - Mar Su>=8 0s 1 D
1705
+ R Q 2027 ma - N Su>=1 0s 0 S
1706
+ R Q 2028 ma - Mar Su>=8 0s 1 D
1705
1707
  R DO 1966 o - O 30 0 1 EDT
1706
1708
  R DO 1967 o - F 28 0 0 EST
1707
1709
  R DO 1969 1973 - O lastSu 0 0:30 -0430
@@ -1771,19 +1773,20 @@ R A 2008 o - O Su>=15 0 1 -
1771
1773
  R Sa 2008 2009 - Mar Su>=8 0 0 -
1772
1774
  R Sa 2007 2008 - O Su>=8 0 1 -
1773
1775
  R B 1931 o - O 3 11 1 -
1774
- R B 1932 1933 - Ap 1 0 0 -
1776
+ R B 1932 1933 - Mar 31 24 0 -
1775
1777
  R B 1932 o - O 3 0 1 -
1776
1778
  R B 1949 1952 - D 1 0 1 -
1777
1779
  R B 1950 o - Ap 16 1 0 -
1778
- R B 1951 1952 - Ap 1 0 0 -
1779
- R B 1953 o - Mar 1 0 0 -
1780
+ R B 1951 1952 - Mar 31 24 0 -
1781
+ R B 1953 o - F 28 24 0 -
1780
1782
  R B 1963 o - D 9 0 1 -
1781
1783
  R B 1964 o - Mar 1 0 0 -
1782
1784
  R B 1965 o - Ja 31 0 1 -
1783
- R B 1965 o - Mar 31 0 0 -
1784
- R B 1965 o - D 1 0 1 -
1785
- R B 1966 1968 - Mar 1 0 0 -
1785
+ R B 1965 o - Mar 31 24 0 -
1786
+ R B 1965 o - N 30 24 1 -
1787
+ R B 1966 o - Mar 1 1 0 -
1786
1788
  R B 1966 1967 - N 1 0 1 -
1789
+ R B 1967 1968 - Mar 1 0 0 -
1787
1790
  R B 1985 o - N 2 0 1 -
1788
1791
  R B 1986 o - Mar 15 0 0 -
1789
1792
  R B 1986 o - O 25 0 1 -
Binary file
package/package.json CHANGED
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "version": "1.6.1"
27
+ "version": "1.6.2"
28
28
  }