Skip to content

Commit 8d17718

Browse files
committed
fix: package upgrades, analysis issue fixes
1 parent d8ac087 commit 8d17718

File tree

12 files changed

+4543
-3349
lines changed

12 files changed

+4543
-3349
lines changed

docs/package.json

+22-22
Original file line numberDiff line numberDiff line change
@@ -11,36 +11,36 @@
1111
"serve": "docusaurus serve --port 3001"
1212
},
1313
"dependencies": {
14-
"@algolia/client-search": "^4.22.0",
15-
"@docusaurus/core": "^3.1.1",
16-
"@docusaurus/preset-classic": "^3.1.1",
17-
"@emotion/react": "^11.11.4",
18-
"@emotion/styled": "^11.11.0",
19-
"@mdx-js/react": "^3.0.1",
14+
"@algolia/client-search": "^4.24.0",
15+
"@docusaurus/core": "^3.6.3",
16+
"@docusaurus/preset-classic": "^3.6.3",
17+
"@emotion/react": "^11.14.0",
18+
"@emotion/styled": "^11.14.0",
19+
"@mdx-js/react": "^3.1.0",
2020
"@splinetool/react-spline": "^2.2.6",
21-
"@splinetool/runtime": "^1.0.78",
22-
"axios": "^1.7.4",
23-
"docusaurus-lunr-search": "^3.3.2",
21+
"@splinetool/runtime": "^1.9.48",
22+
"axios": "^1.7.9",
23+
"docusaurus-lunr-search": "^3.5.0",
2424
"lodash.get": "^4.4.2",
25-
"react": "^18.2.0",
26-
"react-dom": "^18.2.0",
25+
"react": "^18.3.1",
26+
"react-dom": "^18.3.1",
2727
"react-loadable": "^5.5.0"
2828
},
2929
"devDependencies": {
30-
"@docusaurus/module-type-aliases": "^3.1.1",
31-
"@docusaurus/types": "^3.1.1",
30+
"@docusaurus/module-type-aliases": "^3.6.3",
31+
"@docusaurus/types": "^3.6.3",
3232
"@types/lodash.get": "^4.4.9",
33-
"@types/node": "^20.11.30",
34-
"@types/react": "^18.2.69",
35-
"autoprefixer": "^10.4.19",
33+
"@types/node": "^20.17.10",
34+
"@types/react": "^18.3.16",
35+
"autoprefixer": "^10.4.20",
3636
"lunr": "^2.3.9",
37-
"postcss": "^8.4.38",
38-
"prettier": "^3.2.5",
39-
"prism-react-renderer": "^2.3.1",
37+
"postcss": "^8.4.49",
38+
"prettier": "^3.4.2",
39+
"prism-react-renderer": "^2.4.1",
4040
"raw-loader": "^4.0.2",
41-
"tailwindcss": "^3.4.1",
42-
"typescript": "^5.4.3",
43-
"webpack": "^5.94.0"
41+
"tailwindcss": "^3.4.16",
42+
"typescript": "^5.7.2",
43+
"webpack": "^5.97.1"
4444
},
4545
"peerDependencies": {
4646
"@algolia/client-search": "^4.22.0",

docs/pnpm-lock.yaml

+4,503-3,308
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/components/home/BadgesSection.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export function BadgesSection() {
1414
return (
1515
<Section className={'bg-slate-100'}>
1616
<div className="flex flex-col sm:flex-row gap-8 items-center justify-center pb-8">
17-
<Statistic stat={'2.3K+'}>
17+
<Statistic stat={'2.4K+'}>
1818
<div>
1919
<a
2020
href={'https://github.com/mobxjs/mobx.dart'}
@@ -24,8 +24,8 @@ export function BadgesSection() {
2424
</a>
2525
</div>
2626
</Statistic>
27-
<Statistic stat={'18,000+'}> Projects</Statistic>
28-
<Statistic stat={'~70'}>Contributors</Statistic>
27+
<Statistic stat={'20,000+'}> Projects</Statistic>
28+
<Statistic stat={'70+'}>Contributors</Statistic>
2929
</div>
3030

3131
<div className={'grid grid-cols-1 sm:grid-cols-2 gap-8 items-center'}>

flutter_mobx/test/helpers.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import 'package:flutter/widgets.dart';
21
import 'package:flutter_mobx/flutter_mobx.dart';
32
import 'package:mobx/mobx.dart';
43
import 'package:mobx/src/core.dart' show ReactionImpl;
@@ -21,7 +20,7 @@ class MockReaction extends Mock implements ReactionImpl {
2120

2221
// ignore: must_be_immutable
2322
class TestObserver extends Observer {
24-
TestObserver(this.reaction, {super.key, required WidgetBuilder super.builder});
23+
TestObserver(this.reaction, {super.key, required super.builder});
2524

2625
final Reaction reaction;
2726

@@ -37,7 +36,7 @@ class TestObserver extends Observer {
3736
class LoggingObserver extends Observer {
3837
// ignore: prefer_const_constructors_in_immutables
3938
LoggingObserver({
40-
required WidgetBuilder super.builder,
39+
required super.builder,
4140
super.warnWhenNoObservables,
4241
super.key,
4342
});
@@ -54,7 +53,7 @@ class LoggingObserver extends Observer {
5453
class FlutterErrorThrowingObserver extends Observer {
5554
// ignore: prefer_const_constructors_in_immutables
5655
FlutterErrorThrowingObserver({
57-
required WidgetBuilder super.builder,
56+
required super.builder,
5857
required this.errorToThrow,
5958
super.key,
6059
});

mobx/example/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ dependency_overrides:
1818

1919
dev_dependencies:
2020
build_runner:
21-
lints: ^1.0.1
21+
lints: ^5.0.0
2222
mobx_codegen:

mobx/lib/mobx.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/// Notice there is no explicit subscription to any observable values. By simply referencing the observables,
2727
/// the reaction picks up the dependencies. When they change, the reaction is automatically triggered.
2828
///
29-
library mobx;
29+
library;
3030

3131
export 'package:mobx/src/api/action.dart';
3232
export 'package:mobx/src/api/annotations.dart'

mobx/lib/src/api/action.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ T runInAction<T>(T Function() fn, {String? name, ReactiveContext? context}) =>
1515
T untracked<T>(T Function() fn, {ReactiveContext? context}) =>
1616
(context ?? mainContext).untracked(fn);
1717

18-
/// During a transaction, no derivations ([Reaction] or [Computed]<T>) will be run
18+
/// During a transaction, no derivations ([Reaction] or [Computed]) will be run
1919
/// and will be deferred until the end of the transaction (batch). Transactions can
2020
/// be nested, in which case, no derivation will be run until the top-most batch completes
2121
T transaction<T>(T Function() fn, {ReactiveContext? context}) {

mobx/lib/src/api/extensions/primitive_types_extensions.dart

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
part of '../extensions.dart';
22

33
extension IntExtension on int {
4-
/// turns an int into Observable<int>
4+
/// turns an int into Observable
55
Observable<int> obs({ReactiveContext? context, String? name}) {
66
return Observable(this, context: context, name: name);
77
}
88
}
99

1010
extension BoolExtension on bool {
11-
/// turns a bool into Observable<bool>
11+
/// turns a bool into Observable
1212
Observable<bool> obs({ReactiveContext? context, String? name}) {
1313
return Observable(this, context: context, name: name);
1414
}
@@ -22,14 +22,14 @@ extension ObservableBoolExtension on Observable<bool> {
2222
}
2323

2424
extension DoubleExtension on double {
25-
/// turns a double into Observable<double>
25+
/// turns a double into Observable
2626
Observable<double> obs({ReactiveContext? context, String? name}) {
2727
return Observable(this, context: context, name: name);
2828
}
2929
}
3030

3131
extension StringExtension on String {
32-
/// turns a String into Observable<String>
32+
/// turns a String into Observable
3333
Observable<String> obs({ReactiveContext? context, String? name}) {
3434
return Observable(this, context: context, name: name);
3535
}

mobx/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ dev_dependencies:
1919
build_runner: ^2.4.9
2020
coverage: ^1.8.0
2121
fake_async: ^1.2.0
22-
lints: ^4.0.0
22+
lints: ^5.0.0
2323
mocktail: ^1.0.3
2424
test: ^1.17.0

mobx_codegen/lib/mobx_codegen.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library mobx_codegen;
1+
library;
22

33
export 'src/mobx_codegen_base.dart';
44
export 'version.dart';

mobx_codegen/pubspec.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ environment:
1414
sdk: ">=3.0.0 <4.0.0"
1515

1616
dependencies:
17-
analyzer: ">=5.12.0 <7.0.0"
17+
analyzer: ">=6.0.0 <7.0.0"
1818
build: ^2.2.1
1919
build_resolvers: ^2.0.6
2020
meta: ^1.3.0
@@ -26,7 +26,7 @@ dev_dependencies:
2626
build_runner: ^2.4.9
2727
build_test: ^2.1.5
2828
coverage: ^1.8.0
29-
lints: ^4.0.0
29+
lints: ^5.0.0
3030
logging: ^1.0.2
3131
mocktail: ^1.0.0
3232
test: ^1.20.1

mobx_lint/pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ dependencies:
2222
path: ^1.8.1
2323
mobx: ^2.2.0
2424
dev_dependencies:
25-
lints: ^4.0.0
25+
lints: ^5.0.0
2626
test: ^1.21.0

0 commit comments

Comments
 (0)