= {};\r\n\r\nconst userId = user.id.toString();\r\nconnectedUsers[userId] = user;\r\n```\r\n\r\nThis code will fail type checking if `user.id.toString()` returns a\r\nstring that doesn't start with `user_`. This adds a bit of type safety,\r\nbut it also makes the code more readable -- when you look at the\r\n`connectedUsers` Record, you know _exactly_ what it's keyed by, not just\r\na generic `string`.\r\n\r\nWithout this change, you instead have to typecast that `toString()`\r\neverywhere:\r\n\r\n```\r\nconst userId = user.id.toString as UserTypeString;\r\n```\r\n\r\nDoable, but ugly. =)\r\n\r\n## How was it tested?\r\n\r\nAll tests pass, and I've been using a locally-linked version of this in\r\nmy project for a while now with no issues.","shortMessageHtmlLink":"Typed toString()
. (#261)"}},{"before":"731a5e2fe5465e3c9c87b4d113bdaa641a90f41a","after":"c723a6210c8f75b0d3a3cc9f9e79f5599e7be19b","ref":"refs/heads/main","pushedAt":"2023-12-01T22:00:23.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"Bump @babel/traverse from 7.22.4 to 7.23.4 in /typeid/typeid-js (#197)\n\nBumps\r\n[@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse)\r\nfrom 7.22.4 to 7.23.4.\r\n\r\nRelease notes
\r\nSourced from @babel/traverse
's\r\nreleases.
\r\n\r\nv7.23.4 (2023-11-20)
\r\n:bug: Bug Fix
\r\n\r\nbabel-generator
\r\n\r\n \r\n
\r\nCommitters: 4
\r\n\r\nv7.23.3 (2023-11-09)
\r\n:bug: Bug Fix
\r\n\r\nbabel-plugin-transform-typescript
\r\n\r\n \r\nbabel-generator
\r\n\r\n \r\nbabel-compat-data
,\r\nbabel-plugin-bugfix-v8-static-class-fields-redefine-readonly
,\r\nbabel-preset-env
\r\n\r\n \r\nbabel-plugin-transform-object-super
\r\n\r\n \r\nbabel-helper-module-transforms
,\r\nbabel-plugin-transform-modules-amd
,\r\nbabel-plugin-transform-modules-commonjs
,\r\nbabel-plugin-transform-modules-umd
\r\n\r\n \r\n
\r\n:memo: Documentation
\r\n\r\n- #16044\r\ndocs: Update links in
@babel/eslint-parser
README (@aryehb
) \r\n
\r\n:house: Internal
\r\n\r\nbabel-core
, babel-preset-env
\r\n\r\n \r\n
\r\n:running_woman: Performance
\r\n\r\nbabel-generator
\r\n\r\n \r\nbabel-traverse
\r\n\r\n \r\n
\r\n:microscope: Output optimization
\r\n\r\nbabel-plugin-transform-computed-properties
\r\n\r\n- #6652\r\nOptimize computed properties output (byte-wise) (
@Andarist
) \r\n
\r\n \r\n
\r\nCommitters: 9
\r\n\r\n\r\n
\r\n... (truncated)
\r\n \r\n\r\nChangelog
\r\nSourced from @babel/traverse
's\r\nchangelog.
\r\n\r\nv7.23.4 (2023-11-20)
\r\n:bug: Bug Fix
\r\n\r\nbabel-generator
\r\n\r\n \r\n
\r\nv7.23.3 (2023-11-09)
\r\n:bug: Bug Fix
\r\n\r\nbabel-plugin-transform-typescript
\r\n\r\n \r\nbabel-generator
\r\n\r\n \r\nbabel-compat-data
,\r\nbabel-plugin-bugfix-v8-static-class-fields-redefine-readonly
,\r\nbabel-preset-env
\r\n\r\n \r\nbabel-plugin-transform-object-super
\r\n\r\n \r\nbabel-helper-module-transforms
,\r\nbabel-plugin-transform-modules-amd
,\r\nbabel-plugin-transform-modules-commonjs
,\r\nbabel-plugin-transform-modules-umd
\r\n\r\n \r\n
\r\n:memo: Documentation
\r\n\r\n- #16044\r\ndocs: Update links in
@babel/eslint-parser
README (@aryehb
) \r\n
\r\n:house: Internal
\r\n\r\nbabel-core
, babel-preset-env
\r\n\r\n \r\n
\r\n:running_woman: Performance
\r\n\r\nbabel-generator
\r\n\r\n \r\nbabel-traverse
\r\n\r\n \r\n
\r\n:microscope: Output optimization
\r\n\r\nbabel-plugin-transform-computed-properties
\r\n\r\n- #6652\r\nOptimize computed properties output (byte-wise) (
@Andarist
) \r\n
\r\n \r\n
\r\nv7.23.2 (2023-10-11)
\r\n:bug: Bug Fix
\r\n\r\nbabel-traverse
\r\n\r\n \r\nbabel-preset-typescript
\r\n\r\n- #16022\r\nRewrite
.tsx
extension when using\r\nrewriteImportExtensions
(@jimmydief
) \r\n
\r\n \r\nbabel-helpers
\r\n\r\n- #16017\r\nFix: fallback to typeof when toString is applied to incompatible object\r\n(
@JLHwung
) \r\n
\r\n \r\nbabel-helpers
,\r\nbabel-plugin-transform-modules-commonjs
,\r\nbabel-runtime-corejs2
, babel-runtime-corejs3
,\r\nbabel-runtime
\r\n\r\n \r\n
\r\nv7.23.0 (2023-09-25)
\r\n:rocket: New Feature
\r\n\r\nbabel-plugin-proposal-import-wasm-source
,\r\nbabel-plugin-syntax-import-source
,\r\nbabel-plugin-transform-dynamic-import
\r\n
\r\n\r\n
\r\n... (truncated)
\r\n \r\n\r\nCommits
\r\n\r\n \r\n
\r\n\r\n\r\n[![Dependabot compatibility\r\nscore](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=@babel/traverse&package-manager=npm_and_yarn&previous-version=7.22.4&new-version=7.23.4)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)\r\n\r\nDependabot will resolve any conflicts with this PR as long as you don't\r\nalter it yourself. You can also trigger a rebase manually by commenting\r\n`@dependabot rebase`.\r\n\r\n[//]: # (dependabot-automerge-start)\r\n[//]: # (dependabot-automerge-end)\r\n\r\n---\r\n\r\n\r\nDependabot commands and options
\r\n
\r\n\r\nYou can trigger Dependabot actions by commenting on this PR:\r\n- `@dependabot rebase` will rebase this PR\r\n- `@dependabot recreate` will recreate this PR, overwriting any edits\r\nthat have been made to it\r\n- `@dependabot merge` will merge this PR after your CI passes on it\r\n- `@dependabot squash and merge` will squash and merge this PR after\r\nyour CI passes on it\r\n- `@dependabot cancel merge` will cancel a previously requested merge\r\nand block automerging\r\n- `@dependabot reopen` will reopen this PR if it is closed\r\n- `@dependabot close` will close this PR and stop Dependabot recreating\r\nit. You can achieve the same result by closing it manually\r\n- `@dependabot show ignore conditions` will show all\r\nof the ignore conditions of the specified dependency\r\n- `@dependabot ignore this major version` will close this PR and stop\r\nDependabot creating any more for this major version (unless you reopen\r\nthe PR or upgrade to it yourself)\r\n- `@dependabot ignore this minor version` will close this PR and stop\r\nDependabot creating any more for this minor version (unless you reopen\r\nthe PR or upgrade to it yourself)\r\n- `@dependabot ignore this dependency` will close this PR and stop\r\nDependabot creating any more for this dependency (unless you reopen the\r\nPR or upgrade to it yourself)\r\nYou can disable automated security fix PRs for this repo from the\r\n[Security Alerts\r\npage](https://github.com/jetpack-io/opensource/network/alerts).\r\n\r\n \r\n\r\nSigned-off-by: dependabot[bot] \r\nCo-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>\r\nCo-authored-by: Mike Landau ","shortMessageHtmlLink":"Bump @babel/traverse from 7.22.4 to 7.23.4 in /typeid/typeid-js (#197)"}},{"before":null,"after":"29f83c4b735da83f4efb0484b1875b62b8182e0e","ref":"refs/heads/dependabot/npm_and_yarn/babel/traverse-7.23.2","pushedAt":"2023-10-19T08:15:41.000Z","pushType":"branch_creation","commitsCount":0,"pusher":{"login":"dependabot[bot]","name":null,"path":"/apps/dependabot","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/29110?s=80&v=4"},"commit":{"message":"Bump @babel/traverse from 7.22.4 to 7.23.2\n\nBumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.4 to 7.23.2.\n- [Release notes](https://github.com/babel/babel/releases)\n- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/babel/babel/commits/v7.23.2/packages/babel-traverse)\n\n---\nupdated-dependencies:\n- dependency-name: \"@babel/traverse\"\n dependency-type: indirect\n...\n\nSigned-off-by: dependabot[bot] ","shortMessageHtmlLink":"Bump @babel/traverse from 7.22.4 to 7.23.2"}},{"before":"774ea7938894efbe999a77ad3f3635ef804c67a1","after":"731a5e2fe5465e3c9c87b4d113bdaa641a90f41a","ref":"refs/heads/main","pushedAt":"2023-09-15T18:02:10.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"feat(typeid-js): upgrade `uuidv7` library to the latest (#132)\n\n## Summary\r\n* Upgrades to the latest version of the underlying V7 UUID library\r\nhttps://github.com/LiosK/uuidv7/tree/main\r\n* Replaces now deprecated usage of `new UUID(bytes)` with static member\r\n`UUID.ofInner(bytes)`\r\n \r\n## How was it tested?\r\n* Unit tests locally\r\n* Tested against my own project that has comprehensive coverage of this\r\nproject\r\n\r\nCo-authored-by: Reece Fenwick ","shortMessageHtmlLink":"feat(typeid-js): upgrade uuidv7
library to the latest (#132)"}},{"before":"3c2a731874944ea9f41ef21ca445f51523c070e9","after":"774ea7938894efbe999a77ad3f3635ef804c67a1","ref":"refs/heads/main","pushedAt":"2023-07-17T19:58:33.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"Warn contributors to use OSS monorepo (#100)\n\nAdd a PR template that automatically warns contributors to send PRs via\r\nthe opensource monorepo instead.","shortMessageHtmlLink":"Warn contributors to use OSS monorepo (#100)"}},{"before":"84c81261864cfd02de5ea4d0cf436e86e6a7d6dc","after":"3c2a731874944ea9f41ef21ca445f51523c070e9","ref":"refs/heads/main","pushedAt":"2023-07-11T18:40:21.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"[typeid-js] Use generics for TypeID resulting in stronger type checking (#91)\n\nChange the type of the TypeID class to `TypeID` where `T` is the\r\nexpected prefix.\r\n\r\nUpdate the types of the different methods appropriately. Add an\r\n`asType()` method as suggested by @xprnio for cases\r\nwhen the compiler can't figure out the exact type and we need to do\r\nnarrowing manually. This is most commonly needed\r\nwhen parsing a TypeID from a string:\r\n```\r\nTypeID.fromString(\"prefix_00041061050r3gg28a1c60t3gf\").asType(\"prefix\");\r\n```\r\n\r\nAdd a test for `asType` and update README appropriately","shortMessageHtmlLink":"[typeid-js] Use generics for TypeID<T> resulting in stronger type che…"}},{"before":"99570f11ad4b631fddac3687ead8190db0565e49","after":"84c81261864cfd02de5ea4d0cf436e86e6a7d6dc","ref":"refs/heads/main","pushedAt":"2023-07-07T16:51:08.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"Update invalid.yml description (#82)\n\n- Added a script to update all spec-based files after a change to\r\n`typeid/typeid/spec/invalid.yml` is made.\r\n- Updated spec files","shortMessageHtmlLink":"Update invalid.yml description (#82)"}},{"before":"54f024818d202007363730d29f6dd76c9a5cd631","after":"99570f11ad4b631fddac3687ead8190db0565e49","ref":"refs/heads/main","pushedAt":"2023-07-07T16:48:41.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"Update README.md (#85)\n\nFixes typo in the Readme.\r\n\r\nSigned-off-by: David Balatero ","shortMessageHtmlLink":"Update README.md (#85)"}},{"before":"1c37d03126583a531198e6ee533a30f9ec4a772a","after":"54f024818d202007363730d29f6dd76c9a5cd631","ref":"refs/heads/main","pushedAt":"2023-07-07T15:44:58.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"loreto","name":"Daniel Loreto","path":"/loreto","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/279789?s=80&v=4"},"commit":{"message":"[typeid-js] Add missing quotes in README example (#80)","shortMessageHtmlLink":"[typeid-js] Add missing quotes in README example (#80)"}},{"before":"54f024818d202007363730d29f6dd76c9a5cd631","after":"1c37d03126583a531198e6ee533a30f9ec4a772a","ref":"refs/heads/main","pushedAt":"2023-07-07T15:22:03.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"mohsenari","name":"Mohsen Ansari","path":"/mohsenari","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/22227661?s=80&v=4"},"commit":{"message":"Merge pull request #5 from dbalatero/patch-1\n\nFix typo in README.md","shortMessageHtmlLink":"Merge pull request #5 from dbalatero/patch-1"}},{"before":"fc9a17ef81b8c400391a6887e9d005900d3151a3","after":"54f024818d202007363730d29f6dd76c9a5cd631","ref":"refs/heads/main","pushedAt":"2023-07-06T18:33:36.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"[typeid-js] Add missing quotes in README example (#80)","shortMessageHtmlLink":"[typeid-js] Add missing quotes in README example (#80)"}},{"before":"7adebaa2bde1b2231905aa8419906b1d7d016ac7","after":"fc9a17ef81b8c400391a6887e9d005900d3151a3","ref":"refs/heads/main","pushedAt":"2023-07-06T18:04:49.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"Bump typeid-js version to 0.2.0 (#79)","shortMessageHtmlLink":"Bump typeid-js version to 0.2.0 (#79)"}},{"before":"0da868650bc0f4876a6b8056bcc9f21800d5a110","after":"7adebaa2bde1b2231905aa8419906b1d7d016ac7","ref":"refs/heads/main","pushedAt":"2023-07-06T17:32:24.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"Added Edge / Browser support (#78)\n\nRef:\r\nhttps://github.com/jetpack-io/typeid-js/pull/4#issuecomment-1623789743","shortMessageHtmlLink":"Added Edge / Browser support (#78)"}},{"before":"b278cd317f48c000e8b713c00c5799daa5ebcc8b","after":"0da868650bc0f4876a6b8056bcc9f21800d5a110","ref":"refs/heads/main","pushedAt":"2023-07-06T12:35:47.000Z","pushType":"push","commitsCount":1,"pusher":{"login":"jetpack-io-bot","name":null,"path":"/jetpack-io-bot","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/93685620?s=80&v=4"},"commit":{"message":"[typeid] Enforce that the first suffix character is in the 0-7 range (#75)\n\nChange spec and implementations to enforce that the first suffix\r\ncharacter should be in the `0-7` range. This is because\r\n26 characters in base32 encode 130-bits, but UUIDs are only 128-bits. In\r\norder to guarantee that there are no\r\noverflow errors and that the `typeid <-> uuid` mapping is a bijective\r\nfunction, the maximum possible suffix is `7zzzzzzzzzzzzzzzzzzzzzzzzz`.\r\n\r\nThis was first reported by @fxlae in\r\nhttps://github.com/jetpack-io/typeid/issues/20\r\n\r\nThis PR:\r\n1. Updates the spec\r\n2. Updates the test data files provided by the spec\r\n3. Updates our `go` and `typescript` implementations","shortMessageHtmlLink":"[typeid] Enforce that the first suffix character is in the 0-7 range …"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEsmdCMgA","startCursor":null,"endCursor":null}},"title":"Activity · jetify-com/typeid-js"}