Commit 05cdb5f
authored
refactor(memoize): depend on harden, not ses (#3107)
Closes: #XXXX
Refs: #3108
## Description
`@endo/memoize` is a tiny package that had depended on `'ses'` only for
`harden`. It is a great example of why we factored `harden` out into an
importable `@endo/harden`. The PR changes `@endo/memoize` to depend
directly on `endo@harden` rather than `ses`.
### Security Considerations
@endo/harden enables non-protecting hardens, but only when protection is
off in general. @endo/memoize only provides its strong guarantees when
@endo/harden is fully protecting. This is all consistent, so I would
say:
No weakening of security.
### Scaling Considerations
A bit. It means other packages can depend on @endo/memoize without
bringing in all of ses.
### Documentation Considerations
none
### Testing Considerations
- [x] Should do the multi-ses-ava mode testing that @kriskowal set up.
Addendum: happy to find that it already happens without my needing to do
anything. Thanks @kriskowal !
### Compatibility Considerations
none
### Upgrade Considerations
none1 parent d1d9625 commit 05cdb5f
File tree
4 files changed
+6
-5
lines changed- .changeset
- packages/memoize
4 files changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | | - | |
| 38 | + | |
40 | 39 | | |
41 | 40 | | |
42 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
903 | 903 | | |
904 | 904 | | |
905 | 905 | | |
906 | | - | |
907 | 906 | | |
908 | 907 | | |
909 | 908 | | |
| |||
0 commit comments