Skip to content

Commit 3da2e3c

Browse files
committed
fledge: Bump version to 1.1.0
1 parent 2d247f2 commit 3da2e3c

2 files changed

Lines changed: 37 additions & 55 deletions

File tree

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: dm
22
Title: Relational Data Models
3-
Version: 1.0.99.9901
3+
Version: 1.1.0
44
Date: 2026-02-24
55
Authors@R:
66
c(person(given = "Tobias",

NEWS.md

Lines changed: 36 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,43 @@
11
<!-- NEWS.md is maintained by https://fledge.cynkra.com, contributors should not edit this file -->
22

3-
# dm 1.0.99.9901
3+
# dm 1.1.0
44

5-
## Chore
5+
## Breaking changes
66

7-
- Document.
7+
- A startup message now recommends running `library(dplyr)` before `library(dm)`.
8+
In a future version, the dm package will no longer reexport all dplyr functions.
9+
The new pattern ensures that scripts written today will work after that change.
10+
Set `options(dm.suppress_dplyr_startup_message = TRUE)` to turn off the startup message.
811

9-
## Documentation
12+
- `copy_dm_to()` now uses `dm_sql()` internally and creates key constraints on the
13+
database (@krlmlr, #1887, #2022).
14+
Unique keys and autoincrement primary keys (#1725) are set up automatically.
15+
Data models with cyclic foreign-key references are now supported on all databases
16+
that allow `ALTER TABLE` to add constraints (all except DuckDB and SQLite, #664).
1017

11-
- Update examples and vignettes to use `summarize(.by = ...)` instead of `group_by()` (#2415, #2416).
18+
``` r
19+
con <- DBI::dbConnect(duckdb::duckdb())
20+
dm_financial() |>
21+
copy_dm_to(con, ., temporary = FALSE, set_key_constraints = TRUE)
22+
DBI::dbDisconnect(con)
23+
```
1224

13-
## Testing
25+
## Bug fixes
1426

15-
- Snapshot updates for R-CMD-check-dev ({"package":"duckplyr"}) (#2419).
27+
- `dm_from_con(learn_keys = TRUE, .names = )` now correctly applies the specified
28+
table naming pattern (@owenjonesuob, #2213, #2214).
29+
30+
- `dm_from_con()` no longer learns tables from all schemas by default for Postgres,
31+
MSSQL, and MariaDB (@mgirlich, #1440, #1448).
32+
The defaults are `"public"` (Postgres), `"dbo"` (MSSQL), and the current
33+
database (MariaDB), avoiding spurious system tables.
34+
35+
- Fixed a spurious message from `dm_rm_fk()` when foreign keys reference
36+
non-primary-key columns (#1270, #2367).
1637

38+
- Corrected the deprecation warning message for `dm_squash_to_tbl()` (#1364, #2302).
1739

18-
# dm 1.0.99.9900
40+
- `dm_paste()` limits its pipelines to up to 100 steps, splitting longer pipelines as needed (#2301).
1941

2042
## Features
2143

@@ -32,41 +54,26 @@
3254
Useful for denormalizing a star schema before reporting or further analysis.
3355
Supports `recursive`, `allow_deep`, and any dplyr join type.
3456

35-
``` r
36-
dm_nycflights13() |>
3757
dm_select_tbl(-weather) |>
3858
dm_flatten(flights, recursive = TRUE)
39-
```
40-
4159
- `dm_draw()` gains a `backend_opts` argument that collects all backend-specific
4260
options in a single named list (#2381).
4361
The individual top-level arguments (`graph_attrs`, `node_attrs`, `edge_attrs`,
4462
`focus`, `graph_name`, `font_size`, `columnArrows`) are soft-deprecated in
4563
favour of passing their equivalents in `backend_opts`.
4664

47-
``` r
48-
dm_nycflights13() |>
4965
dm_draw(backend_opts = list(column_arrow = FALSE))
50-
```
51-
5266
- `dm_examine_constraints()` gains a `.max_value` argument controlling how many
5367
distinct problematic values are reported in the `problem` column (#2200, #2387).
5468
The default is `6`; use `.max_value = Inf` to report all violations.
5569

56-
``` r
57-
dm_nycflights13() |>
5870
dm_examine_constraints(.max_value = Inf)
59-
```
60-
6171
- `check_key()` now returns its input data frame when the key is valid
6272
(#2221, #2303), making it usable in pipelines.
6373

64-
``` r
6574
my_data |>
6675
check_key(id) |>
6776
dplyr::filter(value > 0)
68-
```
69-
7077
- igraph is now an optional dependency (#2146, #2364), reducing the mandatory
7178
install footprint.
7279
Functions that require igraph will prompt you to install it when needed.
@@ -82,42 +89,17 @@
8289
- All user-facing messages now use `cli::cli_inform()` with native formatting
8390
(#2374).
8491

85-
## Breaking changes
86-
87-
- A startup message now recommends running `library(dplyr)` before `library(dm)`.
88-
In a future version, the dm package will no longer reexport all dplyr functions.
89-
The new pattern ensures that scripts written today will work after that change.
90-
Set `options(dm.suppress_dplyr_startup_message = TRUE)` to turn off the startup message.
91-
92-
- `copy_dm_to()` now uses `dm_sql()` internally and creates key constraints on the
93-
database (@krlmlr, #1887, #2022).
94-
Unique keys and autoincrement primary keys (#1725) are set up automatically.
95-
Data models with cyclic foreign-key references are now supported on all databases
96-
that allow `ALTER TABLE` to add constraints (all except DuckDB and SQLite, #664).
97-
98-
``` r
99-
con <- DBI::dbConnect(duckdb::duckdb())
100-
dm_financial() |>
101-
copy_dm_to(con, ., temporary = FALSE, set_key_constraints = TRUE)
102-
DBI::dbDisconnect(con)
103-
```
104-
105-
## Bug fixes
92+
## Chore
10693

107-
- `dm_from_con(learn_keys = TRUE, .names = )` now correctly applies the specified
108-
table naming pattern (@owenjonesuob, #2213, #2214).
94+
- Document.
10995

110-
- `dm_from_con()` no longer learns tables from all schemas by default for Postgres,
111-
MSSQL, and MariaDB (@mgirlich, #1440, #1448).
112-
The defaults are `"public"` (Postgres), `"dbo"` (MSSQL), and the current
113-
database (MariaDB), avoiding spurious system tables.
96+
## Documentation
11497

115-
- Fixed a spurious message from `dm_rm_fk()` when foreign keys reference
116-
non-primary-key columns (#1270, #2367).
98+
- Update examples and vignettes to use `summarize(.by = ...)` instead of `group_by()` (#2415, #2416).
11799

118-
- Corrected the deprecation warning message for `dm_squash_to_tbl()` (#1364, #2302).
100+
## Testing
119101

120-
- `dm_paste()` limits its pipelines to up to 100 steps, splitting longer pipelines as needed (#2301).
102+
- Snapshot updates for R-CMD-check-dev ({"package":"duckplyr"}) (#2419).
121103

122104

123105
# dm 1.0.12

0 commit comments

Comments
 (0)