@julman_dev/reviver 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.editorconfig ADDED
@@ -0,0 +1,8 @@
1
+ root = true
2
+
3
+ [*]
4
+ end_of_line = lf
5
+ insert_final_newline = true
6
+ charset = utf-8
7
+ indent_style = space
8
+ indent_size = 2
package/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ dist/
2
+ node_modules/
3
+ .DS_Store
@@ -0,0 +1,10 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Ignored default folder with query files
7
+ /queries/
8
+ # Datasource local storage ignored files
9
+ /dataSources/
10
+ /dataSources.local.xml
@@ -0,0 +1,111 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="BackendCodeEditorSettings">
4
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CDeclarationWithImplicitIntType/@EntryIndexedValue" value="WARNING" type="string" />
5
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CommentTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
6
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppAwaiterTypeIsNotClass/@EntryIndexedValue" value="WARNING" type="string" />
7
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCVQualifierCanNotBeAppliedToReference/@EntryIndexedValue" value="WARNING" type="string" />
8
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassIsIncomplete/@EntryIndexedValue" value="WARNING" type="string" />
9
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppClassNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
10
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConceptNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
11
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConditionalExpressionCanBeSimplified/@EntryIndexedValue" value="SUGGESTION" type="string" />
12
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConstParameterInDeclaration/@EntryIndexedValue" value="SUGGESTION" type="string" />
13
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppConstexprIfDiscardedBranch/@EntryIndexedValue" value="HINT" type="string" />
14
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppCoroutineCallResolveError/@EntryIndexedValue" value="WARNING" type="string" />
15
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAArrayIndexOutOfBounds/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
16
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantConditions/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
17
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantFunctionResult/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
18
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAConstantParameter/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
19
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFADeletedPointer/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
20
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAEndlessLoop/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
21
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAInfiniteRecursion/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
22
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAInvalidatedMemory/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
23
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALocalValueEscapesFunction/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
24
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALocalValueEscapesScope/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
25
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFALoopConditionNotUpdated/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
26
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAMemoryLeak/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
27
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFANotInitializedField/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
28
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFANullDereference/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
29
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFATimeOver/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
30
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreachableCode/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
31
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreachableFunctionCall/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
32
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnreadVariable/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
33
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDFAUnusedValue/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
34
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
35
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDeclaratorUsedBeforeInitialization/@EntryIndexedValue" value="ERROR" type="string" />
36
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultInitializationWithNoUserConstructor/@EntryIndexedValue" value="WARNING" type="string" />
37
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefaultIsUsedAsIdentifier/@EntryIndexedValue" value="WARNING" type="string" />
38
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDefinitionsOrder/@EntryIndexedValue" value="HINT" type="string" />
39
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppDereferenceOperatorLimitExceeded/@EntryIndexedValue" value="WARNING" type="string" />
40
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceCVQualifiersOrder/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
41
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceCVQualifiersPlacement/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
42
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceDoStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
43
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceForStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
44
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceFunctionDeclarationStyle/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
45
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceIfStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
46
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceNestedNamespacesStyle/@EntryIndexedValue" value="HINT" type="string" />
47
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceOverridingDestructorStyle/@EntryIndexedValue" value="SUGGESTION" type="string" />
48
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceOverridingFunctionStyle/@EntryIndexedValue" value="SUGGESTION" type="string" />
49
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceTypeAliasCodeStyle/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
50
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnforceWhileStatementBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
51
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEntityAssignedButNoRead/@EntryIndexedValue" value="WARNING" type="string" />
52
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEntityUsedOnlyInUnevaluatedContext/@EntryIndexedValue" value="WARNING" type="string" />
53
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEnumeratorNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
54
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppEvaluationFailure/@EntryIndexedValue" value="ERROR" type="string" />
55
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppExplicitSpecializationInNonNamespaceScope/@EntryIndexedValue" value="WARNING" type="string" />
56
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFinalFunctionInFinalClass/@EntryIndexedValue" value="SUGGESTION" type="string" />
57
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFinalNonOverridingVirtualFunction/@EntryIndexedValue" value="SUGGESTION" type="string" />
58
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppForwardEnumDeclarationWithoutUnderlyingType/@EntryIndexedValue" value="WARNING" type="string" />
59
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppFunctionDoesntReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
60
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppInconsistentNaming/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
61
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLambdaCaptureNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
62
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
63
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLocalVariableWithNonTrivialDtorIsNeverUsed/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
64
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppLongFloat/@EntryIndexedValue" value="WARNING" type="string" />
65
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMemberInitializersOrder/@EntryIndexedValue" value="SUGGESTION" type="string" />
66
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtAddressOfClassRValue/@EntryIndexedValue" value="WARNING" type="string" />
67
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtBindingRValueToLvalueReference/@EntryIndexedValue" value="WARNING" type="string" />
68
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtCopyElisionInCopyInitDeclarator/@EntryIndexedValue" value="WARNING" type="string" />
69
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtDoubleUserConversionInCopyInit/@EntryIndexedValue" value="WARNING" type="string" />
70
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtNotInitializedStaticConstLocalVar/@EntryIndexedValue" value="WARNING" type="string" />
71
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMsExtReinterpretCastFromNullptr/@EntryIndexedValue" value="WARNING" type="string" />
72
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppMutableSpecifierOnReferenceMember/@EntryIndexedValue" value="WARNING" type="string" />
73
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppNotAllPathsReturnValue/@EntryIndexedValue" value="WARNING" type="string" />
74
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppObjectMemberMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
75
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppOutParameterMustBeWritten/@EntryIndexedValue" value="WARNING" type="string" />
76
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppParameterNeverUsed/@EntryIndexedValue" value="HINT" type="string" />
77
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrecompiledHeaderIsNotIncluded/@EntryIndexedValue" value="ERROR" type="string" />
78
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppPrecompiledHeaderNotFound/@EntryIndexedValue" value="ERROR" type="string" />
79
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantBaseClassInitializer/@EntryIndexedValue" value="SUGGESTION" type="string" />
80
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantConditionalExpression/@EntryIndexedValue" value="SUGGESTION" type="string" />
81
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantDereferencingAndTakingAddress/@EntryIndexedValue" value="SUGGESTION" type="string" />
82
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantElaboratedTypeSpecifier/@EntryIndexedValue" value="HINT" type="string" />
83
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantExportKeyword/@EntryIndexedValue" value="WARNING" type="string" />
84
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantFwdClassOrEnumSpecifier/@EntryIndexedValue" value="SUGGESTION" type="string" />
85
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRedundantZeroInitializerInAggregateInitialization/@EntryIndexedValue" value="SUGGESTION" type="string" />
86
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppRemoveRedundantBraces/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
87
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppReturnNoValueInNonVoidFunction/@EntryIndexedValue" value="WARNING" type="string" />
88
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppSomeObjectMembersMightNotBeInitialized/@EntryIndexedValue" value="WARNING" type="string" />
89
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticAssertFailure/@EntryIndexedValue" value="ERROR" type="string" />
90
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppStaticDataMemberInUnnamedStruct/@EntryIndexedValue" value="WARNING" type="string" />
91
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTabsAreDisallowed/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
92
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateParameterNeverUsed/@EntryIndexedValue" value="HINT" type="string" />
93
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTemplateParameterShadowing/@EntryIndexedValue" value="WARNING" type="string" />
94
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppTypeAliasNeverUsed/@EntryIndexedValue" value="WARNING" type="string" />
95
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUninitializedDependentBaseClass/@EntryIndexedValue" value="WARNING" type="string" />
96
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnionMemberOfReferenceType/@EntryIndexedValue" value="WARNING" type="string" />
97
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnmatchedPragmaEndRegionDirective/@EntryIndexedValue" value="WARNING" type="string" />
98
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnmatchedPragmaRegionDirective/@EntryIndexedValue" value="WARNING" type="string" />
99
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnnecessaryWhitespace/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
100
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUnusedIncludeDirective/@EntryIndexedValue" value="WARNING" type="string" />
101
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAuto/@EntryIndexedValue" value="HINT" type="string" />
102
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUseAutoForNumeric/@EntryIndexedValue" value="HINT" type="string" />
103
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppUserDefinedLiteralSuffixDoesNotStartWithUnderscore/@EntryIndexedValue" value="WARNING" type="string" />
104
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppVolatileParameterInDeclaration/@EntryIndexedValue" value="SUGGESTION" type="string" />
105
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWarningDirective/@EntryIndexedValue" value="WARNING" type="string" />
106
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWrongIncludesOrder/@EntryIndexedValue" value="HINT" type="string" />
107
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=CppWrongSlashesInIncludeDirective/@EntryIndexedValue" value="HINT" type="string" />
108
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=IdentifierTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
109
+ <option name="/Default/CodeInspection/Highlighting/InspectionSeverities/=StringLiteralTypo/@EntryIndexedValue" value="DO_NOT_SHOW" type="string" />
110
+ </component>
111
+ </project>
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="GoImports">
4
+ <option name="excludedPackages">
5
+ <array>
6
+ <option value="golang.org/x/net/context" />
7
+ </array>
8
+ </option>
9
+ </component>
10
+ </project>
package/.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="KubernetesApiProvider"><![CDATA[{}]]></component>
4
+ <component name="ProjectRootManager" version="2" project-jdk-name="openjdk-26" project-jdk-type="JavaSDK">
5
+ <output url="file://$PROJECT_DIR$/out" />
6
+ </component>
7
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/reviver.iml" filepath="$PROJECT_DIR$/.idea/reviver.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="SwiftToolchain">
4
+ <option name="toolchain" value="xcode-/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,9 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
+ </module>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,237 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="AutoImportSettings">
4
+ <option name="autoReloadType" value="SELECTIVE" />
5
+ </component>
6
+ <component name="BackendCodeEditorMiscSettings">
7
+ <option name="/Default/Environment/Hierarchy/GeneratedFilesCacheKey/Timestamp/@EntryValue" value="4" type="long" />
8
+ <option name="/Default/Housekeeping/FeatureSuggestion/FeatureSuggestionManager/DisabledSuggesters/=SwitchToGoToActionSuggester/@EntryIndexedValue" value="true" type="bool" />
9
+ </component>
10
+ <component name="ChangeListManager">
11
+ <list default="true" id="df395e17-5d68-4470-ac10-8184aeb1a1b5" name="Changes" comment="Using npm token to publish">
12
+ <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
13
+ <change beforePath="$PROJECT_DIR$/package.json" beforeDir="false" afterPath="$PROJECT_DIR$/package.json" afterDir="false" />
14
+ </list>
15
+ <option name="SHOW_DIALOG" value="false" />
16
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
17
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
18
+ <option name="LAST_RESOLUTION" value="IGNORE" />
19
+ </component>
20
+ <component name="EmbeddingIndexingInfo">
21
+ <option name="cachedIndexableFilesCount" value="31" />
22
+ <option name="fileBasedEmbeddingIndicesEnabled" value="true" />
23
+ </component>
24
+ <component name="Git.Settings">
25
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
26
+ </component>
27
+ <component name="GitHubPullRequestSearchHistory">{
28
+ &quot;lastFilter&quot;: {
29
+ &quot;state&quot;: &quot;OPEN&quot;,
30
+ &quot;assignee&quot;: &quot;JulMan-Dev&quot;
31
+ }
32
+ }</component>
33
+ <component name="GithubPullRequestsUISettings">{
34
+ &quot;selectedUrlAndAccountId&quot;: {
35
+ &quot;url&quot;: &quot;https://github.com/JulMan-Dev/reviver.git&quot;,
36
+ &quot;accountId&quot;: &quot;b369c0d7-05d9-4073-baab-17d1d10ea59e&quot;
37
+ }
38
+ }</component>
39
+ <component name="MacroExpansionManager">
40
+ <option name="directoryName" value="NauroMax" />
41
+ </component>
42
+ <component name="McpProjectServerCommands">
43
+ <commands />
44
+ <urls />
45
+ </component>
46
+ <component name="NextEditCompletionFeaturesState">
47
+ <decayedCancelled>
48
+ <entry key="MS100" value="1.0011613350735429" />
49
+ <entry key="MS500" value="1.2626809688621632" />
50
+ <entry key="S2" value="2.193779702410683" />
51
+ <entry key="S5" value="3.2857431044261465" />
52
+ <entry key="S10" value="3.9973055826918906" />
53
+ <entry key="S30" value="7.189631741584445" />
54
+ <entry key="S60" value="15.700741730697779" />
55
+ <entry key="M2" value="30.285447156507786" />
56
+ <entry key="M5" value="54.91323286214805" />
57
+ <entry key="M10" value="78.14015754289461" />
58
+ <entry key="M15" value="92.67277778265647" />
59
+ <entry key="M30" value="114.56277849989219" />
60
+ <entry key="H1" value="129.7597839518628" />
61
+ <entry key="H2" value="138.80252024997668" />
62
+ <entry key="H4" value="143.74673666936522" />
63
+ <entry key="D1" value="148.10206872537682" />
64
+ <entry key="W1" value="148.87116332878603" />
65
+ </decayedCancelled>
66
+ <decayedSelected>
67
+ <entry key="MS100" value="0.0" />
68
+ <entry key="MS500" value="4.9391614396498565E-191" />
69
+ <entry key="S2" value="2.6763033282539103E-48" />
70
+ <entry key="S5" value="1.182219309664814E-19" />
71
+ <entry key="S10" value="5.711970160254459E-10" />
72
+ <entry key="S30" value="0.0020004579514594127" />
73
+ <entry key="S60" value="0.08898029868751141" />
74
+ <entry key="M2" value="0.5959889896885774" />
75
+ <entry key="M5" value="1.9133943379812348" />
76
+ <entry key="M10" value="3.0364752374653605" />
77
+ <entry key="M15" value="3.6718040624558097" />
78
+ <entry key="M30" value="4.589473994242184" />
79
+ <entry key="H1" value="5.214312564951693" />
80
+ <entry key="H2" value="5.584012799128828" />
81
+ <entry key="H4" value="5.785787268827223" />
82
+ <entry key="D1" value="5.963394526817174" />
83
+ <entry key="W1" value="5.994747987540787" />
84
+ </decayedSelected>
85
+ <decayedShown>
86
+ <entry key="MS100" value="0.9737845257171704" />
87
+ <entry key="MS500" value="1.2556984947003214" />
88
+ <entry key="S2" value="2.190712313690707" />
89
+ <entry key="S5" value="3.2838706932261417" />
90
+ <entry key="S10" value="3.996094709107163" />
91
+ <entry key="S30" value="7.186076006846647" />
92
+ <entry key="S60" value="15.77283542077857" />
93
+ <entry key="M2" value="30.848069470185866" />
94
+ <entry key="M5" value="56.79046585876708" />
95
+ <entry key="M10" value="81.15010859285488" />
96
+ <entry key="M15" value="96.32418601083091" />
97
+ <entry key="M30" value="119.14033605106707" />
98
+ <entry key="H1" value="134.96761367392855" />
99
+ <entry key="H2" value="144.38314520893232" />
100
+ <entry key="H4" value="149.53079123371447" />
101
+ <entry key="D1" value="154.06516888192988" />
102
+ <entry key="W1" value="154.86586912392227" />
103
+ </decayedShown>
104
+ </component>
105
+ <component name="NoctuleProjectWorkspaceSettings">
106
+ <option name="migratedAutodetectionSetting" value="true" />
107
+ </component>
108
+ <component name="ProjectColorInfo">{
109
+ &quot;associatedIndex&quot;: 2,
110
+ &quot;fromUser&quot;: false
111
+ }</component>
112
+ <component name="ProjectId" id="3IgPFB1B1dEaDoeVnBpMXSN8xKd" />
113
+ <component name="ProjectViewState">
114
+ <option name="hideEmptyMiddlePackages" value="true" />
115
+ <option name="showLibraryContents" value="true" />
116
+ </component>
117
+ <component name="PropertiesComponent">{
118
+ &quot;keyToString&quot;: {
119
+ &quot;CidrDebugProfileConversion&quot;: &quot;true&quot;,
120
+ &quot;RunOnceActivity.MCP Project settings loaded&quot;: &quot;true&quot;,
121
+ &quot;RunOnceActivity.RadMigrateCodeStyle&quot;: &quot;true&quot;,
122
+ &quot;RunOnceActivity.ShowReadmeOnStart&quot;: &quot;true&quot;,
123
+ &quot;RunOnceActivity.cidr.known.project.marker&quot;: &quot;true&quot;,
124
+ &quot;RunOnceActivity.git.unshallow&quot;: &quot;true&quot;,
125
+ &quot;RunOnceActivity.go.formatter.settings.were.checked&quot;: &quot;true&quot;,
126
+ &quot;RunOnceActivity.readMode.enableVisualFormatting&quot;: &quot;true&quot;,
127
+ &quot;RunOnceActivity.typescript.service.memoryLimit.init&quot;: &quot;true&quot;,
128
+ &quot;cidr.known.project.marker&quot;: &quot;true&quot;,
129
+ &quot;codeWithMe.voiceChat.enabledByDefault&quot;: &quot;false&quot;,
130
+ &quot;com.intellij.ml.llm.matterhorn.ej.ui.settings.DefaultModelSelectionForGA.v1&quot;: &quot;true&quot;,
131
+ &quot;git-widget-placeholder&quot;: &quot;main&quot;,
132
+ &quot;javascript.preferred.runtime.type.id&quot;: &quot;node&quot;,
133
+ &quot;junie.onboarding.icon.badge.shown&quot;: &quot;true&quot;,
134
+ &quot;kotlin-language-version-configured&quot;: &quot;true&quot;,
135
+ &quot;node.js.detected.package.eslint&quot;: &quot;true&quot;,
136
+ &quot;node.js.detected.package.tslint&quot;: &quot;true&quot;,
137
+ &quot;node.js.selected.package.eslint&quot;: &quot;(autodetect)&quot;,
138
+ &quot;node.js.selected.package.tslint&quot;: &quot;(autodetect)&quot;,
139
+ &quot;nodejs_package_manager_path&quot;: &quot;pnpm&quot;,
140
+ &quot;settings.editor.selected.configurable&quot;: &quot;preferences.lookFeel&quot;,
141
+ &quot;to.speed.mode.migration.done&quot;: &quot;true&quot;,
142
+ &quot;ts.external.directory.path&quot;: &quot;/Users/julma/Documents/Projects/reviver/node_modules/typescript/lib&quot;
143
+ }
144
+ }</component>
145
+ <component name="SharedIndexes">
146
+ <attachedChunks>
147
+ <set>
148
+ <option value="bundled-jdk-30f59d01ecdd-a203e0a19954-intellij.indexing.shared.core-IU-262.10315.125" />
149
+ </set>
150
+ </attachedChunks>
151
+ </component>
152
+ <component name="SwiftProjectSettings">
153
+ <option name="detectedToolchain" value="true" />
154
+ </component>
155
+ <component name="TaskManager">
156
+ <task active="true" id="Default" summary="Default task">
157
+ <changelist id="df395e17-5d68-4470-ac10-8184aeb1a1b5" name="Changes" comment="" />
158
+ <created>1788183131667</created>
159
+ <option name="number" value="Default" />
160
+ <option name="presentableId" value="Default" />
161
+ <updated>1788183131667</updated>
162
+ </task>
163
+ <task id="LOCAL-00001" summary="Updating README.md and adding LICENSE">
164
+ <option name="closed" value="true" />
165
+ <created>1788184646904</created>
166
+ <option name="number" value="00001" />
167
+ <option name="presentableId" value="LOCAL-00001" />
168
+ <option name="project" value="LOCAL" />
169
+ <updated>1788184646904</updated>
170
+ </task>
171
+ <task id="LOCAL-00002" summary="Now ready for publishing">
172
+ <option name="closed" value="true" />
173
+ <created>1788695135030</created>
174
+ <option name="number" value="00002" />
175
+ <option name="presentableId" value="LOCAL-00002" />
176
+ <option name="project" value="LOCAL" />
177
+ <updated>1788695135030</updated>
178
+ </task>
179
+ <task id="LOCAL-00003" summary="Add tests">
180
+ <option name="closed" value="true" />
181
+ <created>1788695513975</created>
182
+ <option name="number" value="00003" />
183
+ <option name="presentableId" value="LOCAL-00003" />
184
+ <option name="project" value="LOCAL" />
185
+ <updated>1788695513975</updated>
186
+ </task>
187
+ <task id="LOCAL-00004" summary="Using latest pnpm version&#10;Defined in package.json and in GitHub Workflow">
188
+ <option name="closed" value="true" />
189
+ <created>1788696108696</created>
190
+ <option name="number" value="00004" />
191
+ <option name="presentableId" value="LOCAL-00004" />
192
+ <option name="project" value="LOCAL" />
193
+ <updated>1788696108696</updated>
194
+ </task>
195
+ <task id="LOCAL-00005" summary="Disabling Git checks from pnpm">
196
+ <option name="closed" value="true" />
197
+ <created>1788696399997</created>
198
+ <option name="number" value="00005" />
199
+ <option name="presentableId" value="LOCAL-00005" />
200
+ <option name="project" value="LOCAL" />
201
+ <updated>1788696399997</updated>
202
+ </task>
203
+ <task id="LOCAL-00006" summary="Using npm token to publish">
204
+ <option name="closed" value="true" />
205
+ <created>1788696985641</created>
206
+ <option name="number" value="00006" />
207
+ <option name="presentableId" value="LOCAL-00006" />
208
+ <option name="project" value="LOCAL" />
209
+ <updated>1788696985641</updated>
210
+ </task>
211
+ <option name="localTasksCounter" value="7" />
212
+ <servers />
213
+ </component>
214
+ <component name="TypeScriptGeneratedFilesManager">
215
+ <option name="version" value="3" />
216
+ </component>
217
+ <component name="Vcs.Log.Tabs.Properties">
218
+ <option name="TAB_STATES">
219
+ <map>
220
+ <entry key="MAIN">
221
+ <value>
222
+ <State />
223
+ </value>
224
+ </entry>
225
+ </map>
226
+ </option>
227
+ </component>
228
+ <component name="VcsManagerConfiguration">
229
+ <MESSAGE value="Updating README.md and adding LICENSE" />
230
+ <MESSAGE value="Now ready for publishing" />
231
+ <MESSAGE value="Add tests" />
232
+ <MESSAGE value="Using latest pnpm version&#10;Defined in package.json and in GitHub Workflow" />
233
+ <MESSAGE value="Disabling Git checks from pnpm" />
234
+ <MESSAGE value="Using npm token to publish" />
235
+ <option name="LAST_COMMIT_MESSAGE" value="Using npm token to publish" />
236
+ </component>
237
+ </project>
package/.npmignore ADDED
@@ -0,0 +1,3 @@
1
+ src/
2
+ node_modules/
3
+ .github/
package/LICENSE ADDED
@@ -0,0 +1,7 @@
1
+ Copyright (c) 2026 JulMan
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # @julman/reviver
2
+
3
+ A serialization library for JavaScript/TypeScript that handles types JSON can't represent natively — `BigInt`, `Symbol`,
4
+ `Date`, `URL`, `TypedArray`, `Set`, `RegExp` — and lets you plug in custom revivers for your own classes.
5
+
6
+ No specific use case in mind, but it fits well for client/server communication or persistent storage of complex object
7
+ graphs.
8
+
9
+ ## Installation
10
+
11
+ The package is not published on npm yet, so you'll have to install it from GitHub:
12
+
13
+ ```bash
14
+ npm install @julman_dev/reviver@github:JulMan-Dev/reviver
15
+ # or
16
+ yarn add @julman_dev/reviver@github:JulMan-Dev/reviver
17
+ # or
18
+ pnpm add @julman_dev/reviver@github:JulMan-Dev/reviver
19
+ # or
20
+ bun add @julman_dev/reviver@github:JulMan-Dev/reviver
21
+ ```
22
+
23
+ ## Usage
24
+
25
+ ```ts
26
+ import { Reviver } from "@julman_dev/reviver";
27
+
28
+ const reviver = new Reviver();
29
+
30
+ const str = reviver.stringify({ id: 3n, tags: new Set(["a", "b"]) });
31
+ const obj = await reviver.parse(str);
32
+ ```
33
+
34
+ ### Custom revivers
35
+
36
+ Pass custom revivers to handle your own types:
37
+
38
+ ```ts
39
+ export class CustomReviver implements IReviver<{ foo: string }, [string]> {
40
+ canApplyTo(element: any): element is { foo: string } {
41
+ return typeof element.foo == "string";
42
+ }
43
+ getId(): string {
44
+ return "foo-bar";
45
+ }
46
+ getArguments(element: { foo: string }): [string] {
47
+ return [element.foo];
48
+ }
49
+ revive(args: [string]): { foo: string } {
50
+ return { foo: args[0] };
51
+ }
52
+ }
53
+
54
+ const reviver = new Reviver([new CustomReviver()]);
55
+ ```
56
+
57
+ ## Data providers
58
+
59
+ The final serialized format is abstracted behind an `IDataProvider`.
60
+
61
+ - **JSON** (`JsonDataProvider`) — the default. Not just a thin wrapper around `JSON.stringify`/`parse`: it also handles
62
+ `NaN`, `Infinity`, and `-Infinity`, which standard JSON can't represent.
63
+ - **BSON** (`BsonDataProvider`) — optional; requires installing the `bson` package separately.
64
+
65
+ ```ts
66
+ import { BsonDataProvider } from "@julman_dev/reviver/lang/bson";
67
+
68
+ const reviver = new Reviver([], new BsonDataProvider());
69
+ ```
70
+
71
+ ## Contexts
72
+
73
+ Contexts let a reviver keep a shared state across an entire stringify/parse pass, rather than handling each value in
74
+ isolation. The system is built as a layer on top of the base reviver mechanism (honestly, a bit bolted on) rather than
75
+ a first-class primitive.
76
+
77
+ The library ships one context, `CircularContext`, which lets a reviver store a value once and reference it again later
78
+ instead of duplicating it (or looping forever on a circular structure). **It's opt-in and not automatic** -
79
+ `CircularContext` doesn't detect cycles by itself; a reviver has to explicitly call `wrapValue`/`unwrapValue` to use it.
80
+
81
+ To use contexts:
82
+
83
+ 1. Create an attachable ref and register your contexts with `ContextsReviver`, which returns the revivers needed for the
84
+ system to work — pass them into `Reviver`.
85
+ 2. Wrap the value you're about to serialize with `ref.attach(value)` before passing it to `stringify`/`plainify`.
86
+
87
+ ```ts
88
+ import {Reviver, ContextsReviver, createAttachableRef} from "@julman_def/reviver";
89
+ import {CircularContext, CircularWrapReviver} from "@julman_dev/reviver/contexts/circulars";
90
+
91
+ const ref = createAttachableRef();
92
+ const reviver = new Reviver([
93
+ ...ContextsReviver(ref, [new CircularContext()]),
94
+ new CircularWrapReviver()
95
+ ]);
96
+
97
+ const str = reviver.stringify(ref.attach(myValue));
98
+ ```
99
+
100
+ You can write your own context by implementing `IReviveContext`, or more simply with `createPlainContext`, which builds
101
+ one from a factory function without the class boilerplate.
102
+
103
+ ## Production mode
104
+
105
+ When running in production, reviver and typed-array keys are shortened to reduce the size of serialized payloads (e.g.
106
+ `"bigint"` → a short generated key), rather than sending the full readable tag names over the wire.
107
+
108
+ # License
109
+
110
+ All code in this repository is licensed under the MIT license.
package/jest.config.js ADDED
@@ -0,0 +1,8 @@
1
+ /** @type {import("jest").Config} */
2
+ module.exports = {
3
+ testEnvironment: "node",
4
+ testMatch: ["**/src/**/*.test.ts"],
5
+ transform: {
6
+ "^.+\\.ts$": "ts-jest",
7
+ },
8
+ };
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@julman_dev/reviver",
3
+ "version": "0.1.0",
4
+ "types": "dist/index.d.ts",
5
+ "main": "dist/index.js",
6
+ "type": "commonjs",
7
+ "peerDependencies": {
8
+ "bson": "^5.0.1"
9
+ },
10
+ "devDependencies": {
11
+ "@types/jest": "^29.5.14",
12
+ "jest": "^29.7.0",
13
+ "ts-jest": "^29.2.5",
14
+ "typescript": "^5.0.4"
15
+ },
16
+ "scripts": {
17
+ "build": "tsc",
18
+ "test": "jest"
19
+ }
20
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "compilerOptions": {
3
+ "rootDir": "src",
4
+ "outDir": "dist",
5
+ "declaration": true,
6
+ "sourceMap": true,
7
+ "target": "ESNext",
8
+ "module": "CommonJS"
9
+ }
10
+ }