Skip to content

Commit f7115f3

Browse files
authored
removed deprecated lastBookmark() (#1316)
1 parent 6359497 commit f7115f3

File tree

6 files changed

+1
-68
lines changed

6 files changed

+1
-68
lines changed

packages/core/src/session.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -362,18 +362,6 @@ class Session {
362362
this._hasTx = false
363363
}
364364

365-
/**
366-
* Return the bookmarks received following the last completed {@link Transaction}.
367-
*
368-
* @deprecated This method will be removed in version 6.0. Please, use {@link Session#lastBookmarks} instead.
369-
*
370-
* @return {string[]} A reference to a previous transaction.
371-
* @see {@link Session#lastBookmarks}
372-
*/
373-
lastBookmark (): string[] {
374-
return this.lastBookmarks()
375-
}
376-
377365
/**
378366
* Return the bookmarks received following the last completed {@link Transaction}.
379367
*

packages/core/test/session.test.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -268,19 +268,7 @@ describe('session', () => {
268268
})
269269
})
270270

271-
describe('.lastBookmark()', () => {
272-
it.each([
273-
[bookmarks.Bookmarks.empty()],
274-
[new bookmarks.Bookmarks('bookmark1')],
275-
[new bookmarks.Bookmarks(['bookmark1', 'bookmark2'])]
276-
])('should return the bookmark informed in the object creation', (bookmarks) => {
277-
const session = newSessionWithConnection(newFakeConnection(), false, 1000, bookmarks)
278-
279-
expect(session.lastBookmark()).toEqual(bookmarks.values())
280-
})
281-
})
282-
283-
describe('.lastBookmark()', () => {
271+
describe('.lastBookmarks()', () => {
284272
it.each([
285273
[bookmarks.Bookmarks.empty()],
286274
[new bookmarks.Bookmarks('bookmark1')],

packages/neo4j-driver-deno/lib/core/session.ts

Lines changed: 0 additions & 12 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/neo4j-driver/src/session-rx.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -139,23 +139,6 @@ export default class RxSession {
139139
return this.close()
140140
}
141141

142-
/**
143-
* Returns the bookmarks received following the last successfully completed query, which is executed
144-
* either in an {@link RxTransaction} obtained from this session instance or directly through one of
145-
* the {@link RxSession#run} method of this session instance.
146-
*
147-
* If no bookmarks were received or if this transaction was rolled back, the bookmarks value will not be
148-
* changed.
149-
*
150-
* @deprecated This method will be removed in 6.0 version. Please, use {@link RxSession#lastBookmarks} instead.
151-
*
152-
* @public
153-
* @returns {string[]}
154-
*/
155-
lastBookmark () {
156-
return this.lastBookmarks()
157-
}
158-
159142
/**
160143
* Returns the bookmarks received following the last successfully completed query, which is executed
161144
* either in an {@link RxTransaction} obtained from this session instance or directly through one of

packages/neo4j-driver/test/rx/session.test.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -414,19 +414,6 @@ describe('#integration rx-session', () => {
414414
})
415415

416416
describe('#unit rx-session', () => {
417-
describe('lastBookmark', () => {
418-
;[
419-
bookmarks.Bookmarks.empty(),
420-
new bookmarks.Bookmarks('bookmark1'),
421-
new bookmarks.Bookmarks(['bookmark1', 'bookmark2'])
422-
].forEach(bookmarks => {
423-
it(`should return ${bookmarks}`, () => {
424-
const session = newSession(bookmarks)
425-
expect(session.lastBookmark()).toBe(bookmarks.values())
426-
})
427-
})
428-
})
429-
430417
describe('lastBookmarks', () => {
431418
;[
432419
bookmarks.Bookmarks.empty(),

packages/neo4j-driver/test/types/session-rx.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ const txConfig7: TransactionConfig = {
8181

8282
const tx1: Observable<RxTransaction> = rxSession.beginTransaction()
8383
const bookmarks: string[] = rxSession.lastBookmarks()
84-
const bookmark: string[] = rxSession.lastBookmark()
8584

8685
const observable1: Observable<number> = rxSession.executeRead(
8786
(tx: RxTransaction) => {

0 commit comments

Comments
 (0)