| 
61 | 61 | 
 
  | 
62 | 62 | ### Notable Changes  | 
63 | 63 | 
 
  | 
64 |  | -### require(esm) is now enabled by default  | 
 | 64 | +#### require(esm) is now enabled by default  | 
65 | 65 | 
 
  | 
66 | 66 | Support for loading native ES modules using require() had been available on v20.x and v22.x under the command line flag --experimental-require-module, and available by default on v23.x. In this release, it is now no longer behind a flag on v22.x.  | 
67 | 67 | 
 
  | 
@@ -103,7 +103,36 @@ Certificates added:  | 
103 | 103 | 
 
  | 
104 | 104 | Contributed by Richard Lau in [#55681](https://github.com/nodejs/node/pull/55681)  | 
105 | 105 | 
 
  | 
106 |  | -### Other Notable Changes  | 
 | 106 | +#### SQLite Session Extension  | 
 | 107 | + | 
 | 108 | +Basic support for the [SQLite Session Extension](https://www.sqlite.org/sessionintro.html)  | 
 | 109 | +got added to the experimental `node:sqlite` module.  | 
 | 110 | + | 
 | 111 | +```js  | 
 | 112 | +const sourceDb = new DatabaseSync(':memory:');  | 
 | 113 | +const targetDb = new DatabaseSync(':memory:');  | 
 | 114 | + | 
 | 115 | +sourceDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)');  | 
 | 116 | +targetDb.exec('CREATE TABLE data(key INTEGER PRIMARY KEY, value TEXT)');  | 
 | 117 | + | 
 | 118 | +const session = sourceDb.createSession();  | 
 | 119 | + | 
 | 120 | +const insert = sourceDb.prepare('INSERT INTO data (key, value) VALUES (?, ?)');  | 
 | 121 | +insert.run(1, 'hello');  | 
 | 122 | +insert.run(2, 'world');  | 
 | 123 | + | 
 | 124 | +const changeset = session.changeset();  | 
 | 125 | +targetDb.applyChangeset(changeset);  | 
 | 126 | +// Now that the changeset has been applied, targetDb contains the same data as sourceDb.  | 
 | 127 | +```  | 
 | 128 | + | 
 | 129 | +Of note to distributors when dynamically linking with SQLite (using the `--shared-sqlite`  | 
 | 130 | +flag): compiling SQLite with `SQLITE_ENABLE_SESSION` and `SQLITE_ENABLE_PREUPDATE_HOOK`  | 
 | 131 | +defines is now required.  | 
 | 132 | + | 
 | 133 | +Contributed by Bart Louwers in [#54181](https://github.com/nodejs/node/pull/54181).  | 
 | 134 | + | 
 | 135 | +#### Other Notable Changes  | 
107 | 136 | 
 
  | 
108 | 137 | * \[[`4920869935`](https://github.com/nodejs/node/commit/4920869935)] - **(SEMVER-MINOR)** **assert**: make assertion\_error use Myers diff algorithm (Giovanni Bucci) [#54862](https://github.com/nodejs/node/pull/54862)  | 
109 | 138 | * \[[`ccffd3b819`](https://github.com/nodejs/node/commit/ccffd3b819)] - **doc**: enforce strict policy to semver-major releases (Rafael Gonzaga) [#55732](https://github.com/nodejs/node/pull/55732)  | 
 | 
0 commit comments