Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1379f8a

Browse files
author
Dart CI
committed
Version 2.16.0-150.0.dev
Merge commit '26f5c2ae8411faba5efdc2fe335d52af0d6a1890' into 'dev'
2 parents a6b70ec + 26f5c2a commit 1379f8a

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
error with an existing stack trace, instead of creating
1313
a new stack trace.
1414

15+
#### `dart:indexed_db`
16+
17+
- `IdbFactory.supportsDatabaseNames` has been deprecated. It will always return
18+
`false`.
19+
1520
#### `dart:io`
1621

1722
- **Breaking Change** [#47769](https://github.com/dart-lang/sdk/issues/47769):

sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -507,14 +507,10 @@ class IdbFactory extends JavaScriptObject {
507507
}
508508

509509
/**
510-
* Checks to see if getDatabaseNames is supported by the current platform.
511-
* TODO(terry): Should be able to always return false?
510+
* Deprecated. Always returns `false`.
512511
*/
513-
bool get supportsDatabaseNames {
514-
return supported &&
515-
JS('bool', '!!(#.getDatabaseNames || #.webkitGetDatabaseNames)', this,
516-
this);
517-
}
512+
@Deprecated('No longer supported on modern browsers. Always returns false.')
513+
bool get supportsDatabaseNames => false;
518514

519515
// To suppress missing implicit constructor warnings.
520516
factory IdbFactory._() {

tools/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ CHANNEL dev
2727
MAJOR 2
2828
MINOR 16
2929
PATCH 0
30-
PRERELEASE 149
30+
PRERELEASE 150
3131
PRERELEASE_PATCH 0

tools/dom/templates/html/impl/impl_IDBFactory.darttemplate

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,10 @@ $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
6363
}
6464

6565
/**
66-
* Checks to see if getDatabaseNames is supported by the current platform.
67-
* TODO(terry): Should be able to always return false?
66+
* Deprecated. Always returns `false`.
6867
*/
69-
bool get supportsDatabaseNames {
70-
return supported && JS('bool',
71-
'!!(#.getDatabaseNames || #.webkitGetDatabaseNames)', this, this);
72-
}
68+
@Deprecated('No longer supported on modern browsers. Always returns false.')
69+
bool get supportsDatabaseNames => false;
7370

7471
$!MEMBERS
7572
}

0 commit comments

Comments
 (0)