Skip to content

Commit eb2ecb8

Browse files
authored
Upgrade parsec_web to Hosted Package and Clean Up Local References (#40)
# Description ✍️ This PR includes the following updates and clean-up tasks: - Migrated `parsec_web` from a local path dependency to a hosted package on `pub.dev` (version `^0.1.2`) - Removed outdated `.pubignore` and `pubspec.lock` files from `parsec_web` as it's now a library package - Updated `web` dependency to `^1.1.0` and removed deprecated `js` dependency - Bumped version numbers in `pubspec.yaml` and `CHANGELOG.md` for both `parsec` and `parsec_web` - Removed redundant `.dart_tool/`, `.packages`, and `build/` from `.gitignore` and ensured Flutter-specific ignores are placed where needed
1 parent bb3eae5 commit eb2ecb8

9 files changed

Lines changed: 92 additions & 345 deletions

File tree

.gitignore

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@
33
.aider*
44
.claude/
55

6-
# Dart/Flutter build artifacts
7-
**/.dart_tool/**
8-
**/build/**
9-
**/.packages
10-
116
# IDE/editor files
127
.idea/
138
.vscode/

parsec/CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,6 @@
1-
## 0.5.0
1+
## 0.5.1
22

33
- **NEW: Web Support with WebAssembly** - Added comprehensive web platform support using high-performance WebAssembly compiled from C++
4-
- **Web Implementation** - Published `parsec_web ^0.1.0` package provides offline-first, client-side equation evaluation for Flutter web applications
5-
- **Complete Multi-Platform Coverage** - Now supports Android, Linux, Windows, and Web platforms with identical mathematical precision
6-
- **Updated Dependencies** - All platform implementations updated to use latest `parsec_platform_interface ^0.2.0`
7-
- **Publishing Ready** - Converted from development path dependencies to hosted pub.dev packages
84
- **Enhanced Testing** - Comprehensive cross-platform testing including WebAssembly validation
95

106
## 0.4.0

parsec/example/pubspec.lock

Lines changed: 45 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -5,42 +5,42 @@ packages:
55
dependency: transitive
66
description:
77
name: async
8-
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
8+
sha256: d2872f9c19731c2e5f10444b14686eb7cc85c76274bd6c16e1816bff9a3bab63
99
url: "https://pub.dev"
1010
source: hosted
11-
version: "2.11.0"
11+
version: "2.12.0"
1212
boolean_selector:
1313
dependency: transitive
1414
description:
1515
name: boolean_selector
16-
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
16+
sha256: "8aab1771e1243a5063b8b0ff68042d67334e3feab9e95b9490f9a6ebf73b42ea"
1717
url: "https://pub.dev"
1818
source: hosted
19-
version: "2.1.1"
19+
version: "2.1.2"
2020
characters:
2121
dependency: transitive
2222
description:
2323
name: characters
24-
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
24+
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803
2525
url: "https://pub.dev"
2626
source: hosted
27-
version: "1.3.0"
27+
version: "1.4.0"
2828
clock:
2929
dependency: transitive
3030
description:
3131
name: clock
32-
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
32+
sha256: fddb70d9b5277016c77a80201021d40a2247104d9f4aa7bab7157b7e3f05b84b
3333
url: "https://pub.dev"
3434
source: hosted
35-
version: "1.1.1"
35+
version: "1.1.2"
3636
collection:
3737
dependency: transitive
3838
description:
3939
name: collection
40-
sha256: a1ace0a119f20aabc852d165077c036cd864315bd99b7eaa10a60100341941bf
40+
sha256: "2f5709ae4d3d59dd8f7cd309b4e023046b57d8a6c82130785d2b0e5868084e76"
4141
url: "https://pub.dev"
4242
source: hosted
43-
version: "1.19.0"
43+
version: "1.19.1"
4444
cupertino_icons:
4545
dependency: "direct main"
4646
description:
@@ -53,10 +53,10 @@ packages:
5353
dependency: transitive
5454
description:
5555
name: fake_async
56-
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
56+
sha256: "6a95e56b2449df2273fd8c45a662d6947ce1ebb7aafe80e550a3f68297f3cacc"
5757
url: "https://pub.dev"
5858
source: hosted
59-
version: "1.3.1"
59+
version: "1.3.2"
6060
flutter:
6161
dependency: "direct main"
6262
description: flutter
@@ -80,30 +80,22 @@ packages:
8080
description: flutter
8181
source: sdk
8282
version: "0.0.0"
83-
js:
84-
dependency: transitive
85-
description:
86-
name: js
87-
sha256: c1b2e9b5ea78c45e1a0788d29606ba27dc5f71f019f32ca5140f61ef071838cf
88-
url: "https://pub.dev"
89-
source: hosted
90-
version: "0.7.1"
9183
leak_tracker:
9284
dependency: transitive
9385
description:
9486
name: leak_tracker
95-
sha256: "7bb2830ebd849694d1ec25bf1f44582d6ac531a57a365a803a6034ff751d2d06"
87+
sha256: c35baad643ba394b40aac41080300150a4f08fd0fd6a10378f8f7c6bc161acec
9688
url: "https://pub.dev"
9789
source: hosted
98-
version: "10.0.7"
90+
version: "10.0.8"
9991
leak_tracker_flutter_testing:
10092
dependency: transitive
10193
description:
10294
name: leak_tracker_flutter_testing
103-
sha256: "9491a714cca3667b60b5c420da8217e6de0d1ba7a5ec322fab01758f6998f379"
95+
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
10496
url: "https://pub.dev"
10597
source: hosted
106-
version: "3.0.8"
98+
version: "3.0.9"
10799
leak_tracker_testing:
108100
dependency: transitive
109101
description:
@@ -124,10 +116,10 @@ packages:
124116
dependency: transitive
125117
description:
126118
name: matcher
127-
sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb
119+
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2
128120
url: "https://pub.dev"
129121
source: hosted
130-
version: "0.12.16+1"
122+
version: "0.12.17"
131123
material_color_utilities:
132124
dependency: transitive
133125
description:
@@ -140,17 +132,17 @@ packages:
140132
dependency: transitive
141133
description:
142134
name: meta
143-
sha256: bdb68674043280c3428e9ec998512fb681678676b3c54e773629ffe74419f8c7
135+
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
144136
url: "https://pub.dev"
145137
source: hosted
146-
version: "1.15.0"
138+
version: "1.16.0"
147139
parsec:
148140
dependency: "direct main"
149141
description:
150142
path: ".."
151143
relative: true
152144
source: path
153-
version: "0.4.1"
145+
version: "0.5.1"
154146
parsec_android:
155147
dependency: transitive
156148
description:
@@ -178,10 +170,11 @@ packages:
178170
parsec_web:
179171
dependency: transitive
180172
description:
181-
path: "../../parsec_web"
182-
relative: true
183-
source: path
184-
version: "0.1.0"
173+
name: parsec_web
174+
sha256: "9f6fb0a3113705eec59036f1de2f5b0a496fdee42f6b614204d6fba0ba88c2f0"
175+
url: "https://pub.dev"
176+
source: hosted
177+
version: "0.1.2"
185178
parsec_windows:
186179
dependency: transitive
187180
description:
@@ -194,10 +187,10 @@ packages:
194187
dependency: transitive
195188
description:
196189
name: path
197-
sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af"
190+
sha256: "75cca69d1490965be98c73ceaea117e8a04dd21217b37b292c9ddbec0d955bc5"
198191
url: "https://pub.dev"
199192
source: hosted
200-
version: "1.9.0"
193+
version: "1.9.1"
201194
plugin_platform_interface:
202195
dependency: transitive
203196
description:
@@ -215,50 +208,50 @@ packages:
215208
dependency: transitive
216209
description:
217210
name: source_span
218-
sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c"
211+
sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c"
219212
url: "https://pub.dev"
220213
source: hosted
221-
version: "1.10.0"
214+
version: "1.10.1"
222215
stack_trace:
223216
dependency: transitive
224217
description:
225218
name: stack_trace
226-
sha256: "9f47fd3630d76be3ab26f0ee06d213679aa425996925ff3feffdec504931c377"
219+
sha256: "8b27215b45d22309b5cddda1aa2b19bdfec9df0e765f2de506401c071d38d1b1"
227220
url: "https://pub.dev"
228221
source: hosted
229-
version: "1.12.0"
222+
version: "1.12.1"
230223
stream_channel:
231224
dependency: transitive
232225
description:
233226
name: stream_channel
234-
sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7
227+
sha256: "969e04c80b8bcdf826f8f16579c7b14d780458bd97f56d107d3950fdbeef059d"
235228
url: "https://pub.dev"
236229
source: hosted
237-
version: "2.1.2"
230+
version: "2.1.4"
238231
string_scanner:
239232
dependency: transitive
240233
description:
241234
name: string_scanner
242-
sha256: "688af5ed3402a4bde5b3a6c15fd768dbf2621a614950b17f04626c431ab3c4c3"
235+
sha256: "921cd31725b72fe181906c6a94d987c78e3b98c2e205b397ea399d4054872b43"
243236
url: "https://pub.dev"
244237
source: hosted
245-
version: "1.3.0"
238+
version: "1.4.1"
246239
term_glyph:
247240
dependency: transitive
248241
description:
249242
name: term_glyph
250-
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
243+
sha256: "7f554798625ea768a7518313e58f83891c7f5024f88e46e7182a4558850a4b8e"
251244
url: "https://pub.dev"
252245
source: hosted
253-
version: "1.2.1"
246+
version: "1.2.2"
254247
test_api:
255248
dependency: transitive
256249
description:
257250
name: test_api
258-
sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c"
251+
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
259252
url: "https://pub.dev"
260253
source: hosted
261-
version: "0.7.3"
254+
version: "0.7.4"
262255
vector_math:
263256
dependency: transitive
264257
description:
@@ -271,18 +264,18 @@ packages:
271264
dependency: transitive
272265
description:
273266
name: vm_service
274-
sha256: f6be3ed8bd01289b34d679c2b62226f63c0e69f9fd2e50a6b3c1c729a961041b
267+
sha256: "0968250880a6c5fe7edc067ed0a13d4bae1577fe2771dcf3010d52c4a9d3ca14"
275268
url: "https://pub.dev"
276269
source: hosted
277-
version: "14.3.0"
270+
version: "14.3.1"
278271
web:
279272
dependency: transitive
280273
description:
281274
name: web
282-
sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27"
275+
sha256: "868d88a33d8a87b18ffc05f9f030ba328ffefba92d6c127917a2ba740f9cfe4a"
283276
url: "https://pub.dev"
284277
source: hosted
285-
version: "0.5.1"
278+
version: "1.1.1"
286279
sdks:
287-
dart: ">=3.4.0 <4.0.0"
280+
dart: ">=3.7.0-0 <4.0.0"
288281
flutter: ">=3.19.0"

parsec/pubspec.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: parsec
22
description: Multi-platform `parsec` plugin for Flutter to calculate math equations using C++ library. Supports Android, Linux, Windows, and Web (WebAssembly).
3-
version: 0.5.0
3+
version: 0.5.1
44
repository: https://github.com/oxeanbits/parsec_flutter/tree/main/parsec
55

66
environment:
@@ -14,14 +14,13 @@ dependencies:
1414
parsec_android: ^0.4.0
1515
parsec_linux: ^0.4.0
1616
parsec_windows: ^0.2.0
17-
parsec_web:
18-
path: ../parsec_web
17+
parsec_web: ^0.1.2
1918

2019
dev_dependencies:
2120
flutter_test:
2221
sdk: flutter
2322
flutter_lints: ^4.0.0
24-
web: ^0.5.1
23+
web: ^1.1.0
2524

2625
flutter:
2726
plugin:

parsec_web/.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Miscellaneous
2+
*.class
3+
*.log
4+
*.pyc
5+
*.swp
6+
.DS_Store
7+
.atom/
8+
.buildlog/
9+
.history
10+
.svn/
11+
migrate_working_dir/
12+
13+
# IntelliJ related
14+
*.iml
15+
*.ipr
16+
*.iws
17+
.idea/
18+
.fvm
19+
20+
# The .vscode folder contains launch configuration and tasks you configure in
21+
# VS Code which you may wish to be included in version control, so this line
22+
# is commented out by default.
23+
#.vscode/
24+
25+
# Flutter/Dart/Pub related
26+
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock.
27+
/pubspec.lock
28+
**/doc/api/
29+
.dart_tool/
30+
.packages
31+
build/

parsec_web/.pubignore

Lines changed: 0 additions & 33 deletions
This file was deleted.

parsec_web/CHANGELOG.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1+
## 0.1.2
2+
3+
- Upgrade `web` package to ^1.1.0 for better compatibility and performance.
4+
- Remove deprecated `js` package dependency.
5+
6+
## 0.1.1
7+
8+
- Upgrade `parsec-web` library with WebAssembly (WASM) file fixes.
9+
110
## 0.1.0
211

312
- Creating Web implementation of `parsec` plugin using WebAssembly.
413
- Upgrade minimum Dart SDK version to 3.3.0.
5-
- Upgrade minimum Flutter version to 3.19.0.
14+
- Upgrade minimum Flutter version to 3.19.0.

0 commit comments

Comments
 (0)