p-hatan/ mirror

pub repository

mirror.p-hatan.com

build_resolvers

1.0.4

Resolve Dart code in a Builder

This package is discontinued upstream.

Download archive

Readme

Provides an in-memory Resolvers implementation for use with package:build.

This implementation does a monolithic analysis from source, with fine grained invalidation, which works well when it can be shared across multiple build steps in the same process. It is not however suitable for use in more general build systems, which should build up their analysis context using analyzer summaries.

Changelog

1.0.4

  • Increase lower bound sdk constraint to 2.1.0.
  • Increased the upper bound for package:analyzer to <0.37.0.

1.0.3

  • Fixes a bug where transitive dart-ext: imports would cause the resolver to fail. These uris will now be ignored.

1.0.2

  • Ensure that BuildAssetUriResolver.restoreAbsolute never returns null.
    • Fixes a crash when a resolver is requested but not all transitive sources are available yet.

1.0.1

  • Fix a bug causing crashes on windows.

1.0.0

  • Migrate to AnalysisDriver. There are behavior changes which may be breaking. The LibraryElement instances returned by the resolver will now:
    • Have non-working context fields.
    • Have no source offsets for annotations or their errors.
    • Have working session fields.
    • Have Source instances with different URIs than before.
    • Not include missing libraries in the importedLibraries getter. You can instead use the imports getter to see all the imports.

0.2.3

  • Update to build 1.1.0 and add assetIdForElement.

0.2.2+7

  • Updated _AssetUriResolver to prepare for a future release of the analyzer.
  • Increased the upper bound for package:analyzer to <0.35.0.

0.2.2+6

  • Increased the upper bound for package:analyzer to <0.34.0.

0.2.2+5

  • Increased the upper bound for the build to <1.1.0.

0.2.2+4

  • Removed dependency on cli_util.
  • Increased the upper bound for the build to <0.12.9.

0.2.2+3

  • Don't log a severe message when a URI cannot be resolved. Just return null.

0.2.2+2

  • Use sdk summaries for the analysis context, which makes getting the initial resolver faster (reapplied).

0.2.2+1

  • Restore new keyword for a working release on Dart 1 VM.

0.2.2

  • Use sdk summaries for the analysis context, which makes getting the initial resolver faster.
  • Release broken on Dart 1 VM.

0.2.1+1

  • Increased the upper bound for the sdk to <3.0.0.

0.2.1

  • Allow passing in custom AnalysisOptions.

0.2.0+2

  • Support package:analyzer 0.32.0.

0.2.0+1

  • Switch to firstWhere(orElse) for compatibility with the SDK dev.45

0.2.0

  • Removed locking between uses of the Resolver and added a mandatory reset call to indicate that a complete build is finished.

0.1.1

  • Support the latest analyzer package.

0.1.0

  • Initial release as a migration from code_transformers with a near-identical implementation.

Installing

export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add build_resolvers
pubspec.yaml
name: build_resolvers
version: 1.0.4
description: Resolve Dart code in a Builder
author: Dart Team <misc@dartlang.org>
homepage: https://github.com/dart-lang/build/tree/master/build_resolvers

environment:
  sdk: ">=2.1.0 <3.0.0"

dependencies:
  analyzer: '>=0.35.0 <0.37.0'
  build: ">=1.1.0 <1.2.0"
  path: ^1.1.0

dev_dependencies:
  test: ^1.0.0
  build_test: ^0.10.1
  build_runner: ^1.0.0
  build_vm_compilers: ^0.1.0

Version history

VersionPublishedArchiveSHA-256
0.1.02018-02-01T00:57:59.093592ZDownloadfc942e8e1c05e0d25ba6bcfc447a1ee842d8c3f90fb6ed11cdd2645df86b9e2e
0.1.12018-02-05T22:38:35.818515ZDownload32bcb8f4c0e86178375a8418cb9db5ff60839169e23169c904a3364f6799baa9
0.2.02018-03-01T20:45:26.435077ZDownloadc6a070d5ae5b8a32700cb042e7ab78ed846889742f8c9d3a335a9e264b4aa121
0.2.0+12018-04-05T00:01:19.254879ZDownload37832d468e3ee6ecc257df7dd3de8f952c0a1f588facf079409d9bd81f74bc40
0.2.0+22018-05-15T03:36:48.531178ZDownload64c503de23e9ee46184e1ccebec66b683f91e35f69b9ba11234224068fd36a81
0.2.12018-06-22T17:08:52.435458ZDownload1b9e0220cd3f3bcc192acfd9e0aa88fe9ccb2297299ae2957b80a06b25358176
0.2.1+12018-07-16T21:30:16.745293ZDownload539e377f5634f73314b8b8c2353a47230433f5b2ff8bcdcf91f429369c2683ae
0.2.22018-08-09T21:07:10.546093ZDownload0585475db2dc262cb5638ff40ea5637b75de8241b64cbef4ef7eaec3a0203b53
0.2.2+12018-08-10T19:10:50.533754ZDownloadc0cdf073089a95f7edc3ecbf647bddb2c93705cf419220332245ddb31eef5296
0.2.2+22018-08-13T18:01:24.490615ZDownloadc3072c2a7889e780eb63de5564942f1f570dd95618631e3b3dfd1d619caa4d89
0.2.2+32018-08-21T19:40:41.969948ZDownload65a0800d89b4246a63fef2e5227ac2d89fa9131dca7a1c039fdf599d9b876179
0.2.2+42018-09-24T17:57:30.485852ZDownload9ec0309873fdadfe7502b556cb2bf0607f4f3f7a8dd4a02bfc441766460ce455
0.2.2+52018-09-25T21:27:41.618670ZDownload0aa00811b448fd0bb825673014d840efc0275f353148323a47b4590d45c66940
0.2.2+62018-10-08T16:06:09.692599ZDownload1296be8521ceae173ebf6c8e7c8fef1bb1df9ee1ccacb6467b22d968dee6c5de
0.2.2+72018-12-05T21:09:20.726811ZDownloade44a44208d6755359b1238298ec3612aef2051094f6f6cd1bafbe558ea305d88
0.2.32019-01-14T15:17:57.421933ZDownloadeece044edf1702b7c76dbf69993a267956ebc6c42a07bfaae350bf7455518ea2
1.0.02019-01-31T21:11:22.131469ZDownloadf83fe392c2dd3465278a74547bdf01708ec62abf30dbb774fde4d51f301ead31
1.0.12019-02-04T21:54:38.385481ZDownloadd542fdedb8450dfd0493a5cd45cdbaec89cd859c451c6ec0d239add969d8b81c
1.0.22019-02-06T16:42:31.126558ZDownloadab5ed15d74f25c17b32734acc9afc94bbed6345448ed3f4b6d5336649ce4851a
1.0.32019-02-13T20:47:14.520844ZDownload13f156ef9ecfaa5640330fd2eb6a86ae91e38c8ed33f0ad6335bcb3643f8837b
1.0.42019-04-04T01:39:07.285069ZDownload29784f24d6b38f42189ae08791006578f38216dc29ed2a71637ede7529b63454
1.0.52019-05-20T19:32:03.231962ZDownloadd959629409f858d8abf9c372e3f14425f05cc8779670dc6f7aedabb2694d8fc9
1.0.62019-07-15T17:20:49.456098ZDownload4c1ab29c869f955dac086252154082888f93d5c8bb26c3c5b77ccd5514c13913
1.0.72019-08-16T15:17:31.551075ZDownload9c350791e9505073495a0b4ce4f8d92fe07653ff1929ece98a35556a6d3bc738
1.0.82019-09-20T19:16:12.628260ZDownloadeebe7a8cdfc8267e2dd81d70c8d91f7f0a6d7670b0fd0b8ae63f9d3b50d50b8a
1.1.02019-09-26T18:13:55.164332ZDownloadf0a70dddb0369ac1ef4635b32f6b43371b30645dac3747d17ecb2a117182a066
1.1.12019-09-26T20:05:59.042933ZDownload654e2dfacb5d2d8bbe72bfb9936392a19d1650263b1d8877f55275d998cff034
1.2.02019-10-15T18:14:11.968450ZDownload0e22a7e92373eca566651b03f65f83057cdf182ab44c3f2aa0ad0ab439077cbc
1.2.12019-10-15T20:30:24.576367ZDownloadc9daacf1146395f8bca8acfb8c4e7ce8913f2057daa2cecc65a7378452639417
1.2.22019-10-29T00:29:41.870403ZDownloaddfa9f1e460865453830f4d1c08cded6603881a6dc36cfe170b33cdabc99ce1a9
1.3.02019-11-15T21:42:41.118442ZDownload6eff7bb86342e2bb2158388cad62452bfe090faa527bc86387cde5c63f8fc2e5
1.3.12020-01-09T23:19:37.348849ZDownload74f97736be6a92cc025b97842ddd574b7ee8632c35d68622c5cdd2b7d9989f7a
1.3.22020-01-24T17:26:47.748977ZDownload29fa611b74f4e5c0f11e279b0bbc4915d3fd0031f4bdf24b8d66f7fe88d5bdd9
1.3.32020-02-05T22:44:11.504403ZDownloadb5a99b7e12c77b24a638f5928b7f5dc09b026c1e741c5da22337ec59d6995d54
1.3.42020-04-06T18:56:08.730874ZDownload15c944b6a4726e15b3ef8ed037214687b0179b11df92a7e682df14e4d19dc577
1.3.52020-04-15T18:44:47.543049ZDownload03dc70e1db0eade13828802b1b05cabef8b9388894af816311e093a238db5a97
1.3.62020-04-20T17:24:50.089544ZDownloadf20070c8ebd9b5d15cc6fbd280935fabfea38cc4c3e7e46a598eb5269dda36c2
1.3.72020-04-21T21:22:56.230590ZDownload08bd49cc961bdb21a8da1c9c5060046db2bbf5dd4e4cac38138c0dfd6d7f09ca
1.3.82020-05-11T20:23:25.938270ZDownloade66952b1f13f867b28f4bc35bc447aa981fcf619dd16ae0feaf702887f3b6852
1.3.92020-05-15T01:18:55.553527ZDownloadc8185757f1c8170a8a87c8e3cfa032fe1c3cb6ad52789d0cd2e9aef0e6707362
1.3.102020-07-06T22:08:25.821977ZDownload0b33733456bbcc958a2cca483fb51138d5de7e1d824f4a8efed636384b28759b
1.3.112020-08-10T17:55:06.260527ZDownloadaa981dafe2c27c70e8d71fa8ba25f12ffc662745d0638b4b3f5ff713dae78170
1.4.02020-09-22T18:22:17.046005ZDownload82b6a039435d7291dc2a1abbff5c825f95cd67b43bf07cccc06d4fffadd33ac5
1.4.12020-09-25T17:34:10.058918ZDownloadfd612e068db00749f02bdc53967d40f5966cc34e733d18d551bb86236b3b06ae
1.4.22020-10-20T20:46:47.235305ZDownload97ad408660c9698ffceb7ed6a93191e2b3caa2ed7a5c6fb756562c12ae03f0d2
1.4.32020-10-30T22:23:10.583245ZDownload1d63b83febf024e11362ad22ecb364b7c6f9c565ba7147beb0436d7bad5d47cb
1.4.42020-12-02T15:33:21.428900ZDownload314294060f2985d90944de9b7017735669062381098d89dc6efdfbfa98d69ffd
1.5.02020-12-15T16:18:10.930274ZDownload39f37e9e02d0fa2572628cf2b8ca72c30b8bc29f4156b189415dd6e610459daa
1.5.12020-12-16T18:05:09.011123ZDownload6bc96382d3b59790e444c5a964f0cda4ef9619fd80869bf525d12de52a48244b
1.5.22021-01-07T16:56:45.343663ZDownload401fed31dc8c94f987e6dd19153ff5e0a2e077d4b0e2cb19b073894beee3bfa4
1.5.32021-02-01T18:12:48.395859ZDownloadf11143f4a009ba43e4acb2bb78e72bf8cee8950bb102bd2a9141b0bab5332143
1.5.42021-02-17T15:05:40.606533ZDownload60b18340a32f7f2f8f7955d38d6ad2c2792b8f9412a4fb3abe7581377b870ef2
2.0.02021-03-12T21:05:00.770268ZDownload86c77c3d13ed1fce9a56557e59be9c80fcf9eb54f8a01b1ea76eea551235e8fe
2.0.12021-04-20T20:02:02.260333ZDownload06d90821e8a6df38ce0a8a0e7cd3592d6b15f3a8ae88a56ca4df3acbcc66a4fb
2.0.22021-05-19T14:17:29.086321ZDownload2987733c7368f08f58f1d55547babf175cc2423c35b9840db79944393449516c
2.0.32021-05-27T20:45:16.014634ZDownload0f8fd5ed25d45e6a9b55d664a1c9f65058b0bd4593efc6863959af4bb6b112c4
2.0.42021-07-09T21:27:30.223879ZDownloada171129ff393d360a5ec9ba3a2277e0d7e713027709f08196e8192688b537074
2.0.52021-11-19T21:08:17.225719ZDownload1ceabd2823cf4b7e7bbaf11c4c9c9533b28978c9edcbdae316f6e54157d7e533
2.0.62021-12-16T22:44:30.418169ZDownload4666aef1d045c5ca15ebba63e400bd4e4fbd9f0dd06e791b51ab210da78a27f7
2.0.72022-04-13T20:19:25.622839ZDownload619f1b848fae876e04cf4b9a174eed45f1a9d60f93355e683b4add5ab8d542cc
2.0.82022-04-14T20:34:14.974135ZDownloadd046ad5de5d187ff76437e15eef133abfc4adf0ad5a04584a9abbe771fc295ed
2.0.92022-05-26T19:42:35.148921ZDownload9aae031a54ab0beebc30a888c93e900d15ae2fd8883d031dbfbd5ebdb57f5a4c
2.0.102022-09-13T17:45:21.543404ZDownload687cf90a3951affac1bd5f9ecb5e3e90b60487f3d9cdc359bb310f8876bb02a6
2.1.02022-10-27T18:53:36.382503ZDownload7c35a3a7868626257d8aee47b51c26b9dba11eaddf3431117ed2744951416aab
2.2.02023-02-16T23:51:09.732037ZDownloaddb49b8609ef8c81cca2b310618c3017c00f03a92af44c04d310b907b2d692d95
2.2.12023-06-29T16:47:03.365621ZDownload6c4dd11d05d056e76320b828a1db0fc01ccd376922526f8e9d6c796a5adbac20
2.3.02023-08-30T17:16:35.347965ZDownloadd965794d14bb4cb380580a8179a6b2abcde16969e01c7c4ba8e32401b43f924a
2.3.12023-08-30T20:33:03.706858ZDownloada7417cc44d9edb3f2c8760000270c99dba8c72ff66d0146772b8326565780745
2.3.22023-09-08T17:53:36.004232ZDownloadd912852cce27c9e80a93603db721c267716894462e7033165178b91138587972
2.4.02023-09-25T21:36:53.918821ZDownload0713a05b0386bd97f9e63e78108805a4feca5898a4b821d6610857f10c91e975
2.4.12023-09-29T19:04:48.812073ZDownload64e12b0521812d1684b1917bc80945625391cb9bdd4312536b1d69dcb6133ed8
2.4.22023-12-13T19:09:23.965983ZDownload339086358431fa15d7eca8b6a36e5d783728cf025e559b834f4609a1fcfb7b0a
2.4.32024-12-16T21:47:34.920145ZDownload99d3980049739a985cf9b21f30881f46db3ebc62c5b8d5e60e27440876b1ba1e
2.4.42025-02-11T18:46:10.354085ZDownloadb9e4fda21d846e192628e7a4f6deda6888c36b5b69ba02ff291a01fd529140f0
2.5.02025-06-16T07:32:01.551749ZDownload57fe2f9149b01d52fcd0ea7de17083739b5cf9e040dedb4e24a17c628c1e9caf
2.5.12025-06-17T11:40:08.884753ZDownloadabe6e4b5b36ce2bf01aec8f2a59424d1ecfc3cb340e7145a64359adc7233a0d1
2.5.22025-06-18T11:34:43.141162ZDownload7a507e6026abe52074836d51a945bfad456daa7493eb7a6cac565e490e7d5b54
2.5.32025-06-20T06:57:25.070864ZDownloadbadce70566085f2e87434531c4a6bc8e833672f755fc51146d612245947e91c9
2.5.42025-06-23T11:52:23.381710ZDownloadee4257b3f20c0c90e72ed2b57ad637f694ccba48839a821e87db762548c22a62
3.0.0-dev.12025-06-24T11:53:24.330893ZDownload200775dba69d61c5a3360085fb04fca8a83ecd485afa9924446aae3b106371fa
3.0.0-dev.22025-07-16T12:22:24.591493ZDownload198020558539352d7fc7317ade9a00a40925ae065627b3b791dec50efad6d78a
3.0.02025-07-17T08:09:38.536984ZDownload38c9c339333a09b090a638849a4c56e70a404c6bdd3b511493addfbc113b60c2
3.0.12025-08-07T13:57:37.200328ZDownload82730bf3d9043366ba8c02e4add05842a10739899520a6a22ddbd22d333bd5bb
3.0.22025-08-15T11:33:41.997402ZDownload2b21a125d66a86b9511cc3fb6c668c42e9a1185083922bf60e46d483a81a9712
3.0.32025-09-02T09:10:55.413309ZDownloadd1d57f7807debd7349b4726a19fd32ec8bc177c71ad0febf91a20f84cd2d4b46
3.0.42025-09-02T11:30:46.799872ZDownload065445f16bde0abf5dab8ff20dcc6773125fe387a128cb175f77df756910b452

Dependencies

analyzer "\u003e=0.35.0 \u003c0.37.0"

build "\u003e=1.1.0 \u003c1.2.0"

path "^1.1.0"